Sign in to follow this  
Followers 0
Benzon

Exit return code

3 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



Exit 1

and use command line...

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

Lar.


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites

#3 ·  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

Share this post


Link to post
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
Sign in to follow this  
Followers 0