ken@pyr.gatech.EDU (Ken Hall) (05/11/89)
Does anyone know how to SET errorlevels in DOS using assembler?
msschaa@cs.vu.nl (Schaap MS) (05/11/89)
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? mov ah,4Ch ; exit with return value mov al,Value ; return value int 21h ; call Dos Michael
las) (05/12/89)
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,<errorlevel> ; 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.)