Jump to content

Exit return code


Benzon
 Share

Recommended Posts

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
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...