How do I get the return code of an autoit script I have tried: echo %ERRORLEVEL% in the ms-dos prompt but it gives me 0 every time here is my autoit code: MsgBox(0,"hello","world") Exit(1) What I would really like is for a perl program to execute an autoit program and get back some responses such as: @response=`autoit.exe parm1 parm2`; but I would settle for the return code.