Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pasteur!ucbvax!tut.cis.ohio-state.edu!unmvax!deimos.cis.ksu.edu!rutgers!att!cbnews!cbema!las From: cbema!las@cbnews.ATT.COM (cbema!las) Newsgroups: comp.sys.ibm.pc Subject: Re: errorlevel Message-ID: <6477@cbnews.ATT.COM> Date: 11 May 89 17:14:02 GMT References: <8171@pyr.gatech.EDU> Reply-To: cbema!las@cbnews.ATT.COM (Larry A. Shurr) Organization: AT&T Bell Laboratories, Columbus, OH (actually an AGS consultant) Lines: 15 In article <8171@pyr.gatech.EDU> ken@pyr.gatech.edu.UUCP (Ken Hall) writes: >Does anyone know how to SET errorlevels in DOS using assembler? Sure: MOV AH,4Ch ; AH := 'Quit with exit code' MOV AL, ; AL := exit code (a.k.a. errorlevel) INT 21h ; Call DOS, no return regards, Larry -- Signed: Larry A. Shurr (att!cbnews!cbema!las) Clever signature, Wonderful wit, Outdo the others, Be a big hit! - Burma Shave (With apologies to the real thing. The above represents my views only.) (Please note my mailing address. Mail sent to me on cbnews doesn't make it.)