Jump to content
Sign in to follow this  
RAMzor

How do I generate "Exit Code" in AutoIt ?

Recommended Posts

RAMzor

I use the AutoIt to write small test programm and run it under GUI ( JTAG - DOS based program ) in Windows. For test report ( PASS / FAIL ) I need "Exit Code".

How do I generate "Exit Code" in AutoIt ?

Share this post


Link to post
Share on other sites
LxP

if ($badness) then exit 1
; if we reach this point then all is well
 exit 0

Edit: To clarify, the integer after the Exit instruction is the 'exit code' or return code.

P.S. A search in the help file for 'exit code' gives the appropriate page as the first result. ;)

Edited by LxP

Share this post


Link to post
Share on other sites
RAMzor

Ohhh... I'm unattentive! ;)

Thank you!

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  

×