Subj : Pascal Help To : stizzed From : alterego Date : Sun Jun 28 2020 10:37:03 Re: Pascal Help By: stizzed to All on Sat Jun 27 2020 04:52 pm st> program.exe st> if errorlevel 99 echo ERRORLEVEL 99 st> if errorlevel 98 echo ERRORLEVEL 98 st> When I run this with a coded Halt(333) it prints every ERRORLEVEL xx line st> in the batch... My DOS memory is rusty, but IIRC, "if errorlevel x", means catch every error level that is x "or greater". So if you have your tests in ascending order, it will trip on every one. Perhaps you want "if errorlevel goto