tags:

views:

1113

answers:

2

I Have an old vbs script file being kicked off by an AutoSys job. Can I, and how do I, return an int return value to indicate success or failure?

+4  A: 

Try:

WScript.Quit n

Where n is the ERRORLEVEL you want to return

Rob
+1  A: 

I found the answer :0)

 DIM returnValue
 returnValue = 99
 WScript.Quit(returnValue)

This seems to work well.

Philip.ie