-=> Quoting John Gardeniers to Denis Boyles <=-
JG> True, but that isn't always an option. Looks like I'll just have to
JG> find a better way in a different way. Any idea of where the errorlevel
JG> is stored while executing a batch file?
In US MS DOS 6.20A, it's located at offset 026Bh in the permanent portion
of COMMAND.COM. Needless to say, said location is country and version
dependant.
Just an idea: hook INT 21h. When some program requests the fn 4Dh info,
store it in a variable in your own program.
Peter
... (A)bort, (R)etry, (K)ill innocent bystanders
--- EBO-BBS Diemen - NL
---------------
* Origin: EBO-BBS Diemen (http://www.worldonline.nl/~biginski) (2:280/901)
|