Proof Posted July 5, 2004 Posted July 5, 2004 Hi, i`m translating an AutoIt v2 script to v3. Lines in v2: Runwait, %savelh% full %server%, c:\\ SetEnv, el, %ERRORLEVEL% The automatic v2->v3 converter`s giving me the lines: $__err = __err( RunWait ( $savelh & ' full ' & $server, 'c:\' ) $el = $__err What the.. ? I don`t really understand what it is doing. I found the __err function defintion at the bottom of the script, but that`s just for switching the 0 and 1 return code in the case of an error (was different in v2 and v3). The batch file exits with many different values (10,12,13,14,99,100, whatever) How exactly do i get that "exit %el%" (the exit line from the batch file with the variable %el%, representing an errorcode integer) value into my v3 script ? Hope i`m not too confusing in what my problem is. I´m in a hurry. Thanks for any help ! Wolfram
Valik Posted July 5, 2004 Posted July 5, 2004 RunWait returns the exit code from the application it runs.
Proof Posted July 5, 2004 Author Posted July 5, 2004 (edited) [EDIT] Tried it at "work" ( ) and it is simple like that... [/EDIT] Thanks ! Edited July 6, 2004 by Proof
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