Jump to content

Recommended Posts

Posted (edited)

I'm trying to return an exit code from the script. However, the executable exits immediately, and when I check using

echo %errorlevel%

it always returns a 0.

Here is a sample script.

Sleep(5000)

Exit(1)

Please advise how do I get the script to return a desired Exit return code

Thanks,

Ben

Edited by Benzon
Posted (edited)

Exit 1

and use command line...

START /wait "c:\path to\script.exe"

Lar.

That Works! Grrrrrrr...... i should have known that ... shame shame shame...

Thanks Lar!!!

Edited by Benzon

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...