Path: utzoo!mnetor!uunet!husc6!think!ames!pacbell!att-ih!ihnp4!inuxc!iuvax!iucs!bobmon From: bobmon@iucs.cs.indiana.edu (RAMontante [condition that I not be identified]) Newsgroups: comp.sys.ibm.pc Subject: Re: More on setting DOS errorlevel Message-ID: <6964@iuvax.cs.indiana.edu> Date: 16 Mar 88 00:55:43 GMT References: <4835@sigi.Colorado.EDU> Sender: root@iuvax.cs.indiana.edu Reply-To: bobmon@iucs.UUCP (RAMontante [condition that I not be identified]) Distribution: na Organization: Indiana University CSCI, Bloomington Lines: 15 Rodrigo Murillo asks why the batch-file test if errorlevel N ... succeeds for any errorlevel value that is greater than or equal to N. (Note that this is the documented behavior.) This is something of a philosophical question. I think it most likely that somebody thought they were saving 5 or 6 bytes of code this way. A more forgiving guess might be that someone had a particular style of use or prior example in mind, although my MSDOS manual notes that "Most MS-DOS programs currently return an exit code of 0 at all times." Or perhaps it's best explained in the same way that one explains the rest of MSDOS, and indeed the machines that employ all this mess -- It is the way it is, in order to build the programmer's character.