PDA

Click to See Complete Forum and Search --> : How to check a programs exit code?


parksie
Aug 5th, 2000, 03:37 AM
Use errorlevel:

-- batch file --
c:\myprog\myprog.exe %1
if errorlevel 20 goto bad
goto end

bad:
echo Program failed

end:
-- end batch file --

jwilde1
Aug 7th, 2000, 04:56 PM
How do you print out what the value of errorlevel is?