Exit /B %ERRORLEVEL% ???
Moderator: DosItHelp
Re: Exit /B %ERRORLEVEL% ???
Oh... yes, I see. It makes sense to me now. Thanks for all that a lot.
Re: Exit /B %ERRORLEVEL% ???
foxidrive wrote:Here is an example.
If myfile.ini is not found then the batch file will return errorlevel 12 otherwise it will return the errorlevel of "my program.exe"
It's just an example of how something can be written (with the typo in the setlocal command). It was meant to be studied as a mental exercise and not actually run.
Re: Exit /B %ERRORLEVEL% ???
Yes,
, that's why I was saying in previous posts that I might be figuring it out once I'd use it when I code on my own. Anyway, thanks.
