Mail Archives: djgpp/1998/08/30/14:16:56
In article <35e75646 DOT 2796107 AT cnews DOT newsguy DOT com> you wrote:
> >1] what does the exit code tell you?
[...]
> RE 1] the exit code from main is passed back to the OS. MS-DOS uses
> this value to set the environment variable errlevel. You can use that
> value in a batch file to control batch file processing.
To pick a small nit: It's called errorlevel, I think, and it's not an
environment variable. It's a special option of the 'if' command.
That's also the reason it's not written 'if %errorlevel%==1' but 'if
errorlevel 1'.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -