Benzon Posted October 17, 2008 Posted October 17, 2008 (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 codeThanks,Ben Edited October 17, 2008 by Benzon
LarryDalooza Posted October 17, 2008 Posted October 17, 2008 Exit 1 and use command line... START /wait "c:\path to\script.exe" Lar. AutoIt has helped make me wealthy
Benzon Posted October 17, 2008 Author Posted October 17, 2008 (edited) Exit 1and 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 October 17, 2008 by Benzon
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now