Hi,

Thanks for your responses before. I have tried to gather some more information so that I can change the question into something more intelligent:-)

Basically if i run the following two tests from the command line:

*********TEST1**********

cscript //E:PerlScript c:\"Perl Code"\test1.pl

#code from test1.pl

print "Hello";

WScript->Quit(2)

I will receive the following output.

Hello

(check error code)

c:\ echo %ERRORLEVEL%

2 (Response)

*********TEST2**********

cscript //E:PerlScript c:\"Perl Code"\test2.pl

code from test2.pl is shown in original post

I will receive the following output:

Message: Success

Statistic: 0

Server Teminated Script.

(check error code)

c:\ echo %ERRORLEVEL%

-1073741785 (response)

*******************************

So then my question is what causes the script to terminate with that error code. From what I can see if i remove the statements which refer to the sub modules within radius.pm the script does not return that error code. Im sure i am doing something obviously wrong. Does anyone know what I should be doing.

Kind Regards

Miron

In reply to Re^2: WScript Win32 by mironduplessis
in thread WScript by mironduplessis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.