Jump to content
Sign in to follow this  
Guest Merijn

Exe return value

Recommended Posts

Guest Merijn

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

Share this post


Link to post
Share on other sites

$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

Share this post


Link to post
Share on other sites
Guest Merijn

Thanks guys for pointing me in the right direction! It had to be in there but I didn't find it.

Best regards,

Merijn

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...