BBS: Inland Empire Archive
Date: 02-26-94 (07:50) Number: 277
From: STEVE MCCRYSTAL Refer#: NONE
To: GARY GLUECKERT Recvd: NO
Subj: Get Dos errorlevel Conf: (2) Quik_Bas
In a msg of <24 Feb 94>, Gary Glueckert writes to Harry F. harrison:
GG> The DOS errorlevel is stored in an interrupt in memory and is not
GG> reset by another copy of command.com.
GG> Remember also that not all of Command.com is transient.
GG> FUNCTION ErrorLevel% ()
GG> from shell
GG> DEF SEG = 0
GG> ErrorLevel% = PEEK(&H4FE)
GG> DEF SEG
GG> END FUNCTION
Do you have any more info on this? Is the address guaranteed? Is it
stable across different DOS versions? Can you suggest a documenting reference?
Please don't misunderstand... I'm not disagreeing with you.
I would like to dig into this a bit further because the
concept has LOTS of potential uses and is (to my knowledge)
largely unexplored, as is the DOS
Interapplication Communication area which I use frequently.
--- GoldED 2.42.G0214+/#1057US3
* Origin: -[Steve's Place]- New Berlin, WI (FidoNet 1:3641/1.202)