Path: utzoo!mnetor!uunet!husc6!ncar!ames!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hp-pcd!hpcvlx!everett From: everett@hpcvlx.HP.COM (Everett Kaser) Newsgroups: comp.sys.ibm.pc Subject: Re: Setting DOS errorlevel in C (How?) Message-ID: <1180008@hpcvlx.HP.COM> Date: 16 Mar 88 17:44:10 GMT References: <4831@sigi.Colorado.EDU> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 7 It's set automatically by the 'exit' function; i.e., exit(0); exits and sets ERRORLEVEL to 0 exit(1); exits and sets ERRORLEVEL to 1 exit(2); exits and sets ERRORLEVEL to 2 I hope you see the trend here. :-)