Date: Sun, 30 Aug 1998 20:16:11 +0200 From: Hans-Bernhard Broeker Message-Id: <199808301816.UAA28130@acp3bf.physik.rwth-aachen.de> To: wpp AT brinet DOT com Cc: djgpp AT delorie DOT com Subject: Re: 2 quick questions Newsgroups: comp.os.msdos.djgpp Organization: RWTH Aachen, III. physikalisches Institut B Precedence: bulk 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.