Guest Merijn Posted January 14, 2005 Share Posted January 14, 2005 Hi, I'm very new to AutoIT but have been playing around with it for a few hours. It looks very promissing but I have been searching for 1 feature without succes. Can I somehow get the returnvalue of an exe? I need this to decide what the next step in my script should be. I have been looking trough the helpfile, the examples and the first 8 pages of this support forum but without succes. Is this possible? Best regards, Merijn Link to comment Share on other sites More sharing options...
SlimShady Posted January 14, 2005 Share Posted January 14, 2005 $ExitCode = RunWait("notepad", @SystemDir) Link to comment Share on other sites More sharing options...
blakel Posted January 14, 2005 Share Posted January 14, 2005 $rslt = run..... if $rslt = 0 Then ;successful EndIf -or- Select Case $rslt = 0 ;successful Case $rslt = 1 ;not successful Case $rslt = 2 ; not successful EndSelect also check out @error Link to comment Share on other sites More sharing options...
Guest Merijn Posted January 14, 2005 Share Posted January 14, 2005 Thanks guys for pointing me in the right direction! It had to be in there but I didn't find it. Best regards, Merijn 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