SoulBlade Posted September 13, 2007 Share Posted September 13, 2007 Hi! I'm trying to write a program that performs the following: - autoit executes a DOS command like DIR in a hidden console window - right after running DIR, errorlevel is set to 0 or 1 - autoit shows message "Program sucess" if errorlevel 0 - autoit shows message "Error" if errorlevel 1 I've read the Autoit help file but haven't found a solution. Maybe using ConsoleRead...? Thanks for help! Link to comment Share on other sites More sharing options...
Buey Posted September 13, 2007 Share Posted September 13, 2007 RunWait returns the exit code of the program that was run. Link to comment Share on other sites More sharing options...
SoulBlade Posted September 13, 2007 Author Share Posted September 13, 2007 RunWait returns the exit code of the program that was run.I knew there was something very simple that i was missing!Many thanks! Link to comment Share on other sites More sharing options...
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