Hi Peter,
-=> 13 May 97 20:39, Peter Louwen wrote to John Gardeniers <=-
JG>> to find a better way in a different way. Any idea of where the
JG>> errorlevel is stored while executing a batch file?
PL> In US MS DOS 6.20A, it's located at offset 026Bh in the permanent
PL> portion of COMMAND.COM. Needless to say, said location is country and
PL> version dependant.
As the intended program is specifically for myself, and a single version of
Command.com, that shouldn't be a problem.
PL> Just an idea: hook INT 21h. When some program requests the fn 4Dh
PL> info, store it in a variable in your own program.
Not a bad idea, except that would mean a TSR which must be loaded before
starting the primary batch file. While a perfectly viable way to do it I
would prefer not to load yet another TSR. OTOH, I'll keep the idea in mind in
case all else fails. ;-)
ttyl,
>>> Fuse >>>
--- GoldED/386 3.00.Alpha4+
---------------
* Origin: The Cubby House, assembled by hand (3:632/360.70)
|