Category : Batch File Utilities - mostly for DOS
Archive   : ABFS.ZIP
Filename : ADVBAT13.TXT

 
Output of file : ADVBAT13.TXT contained in archive : ABFS.ZIP

If the "Returned" values of ERRORLEVEL are the same for both the
COMMAND /C and CALL invocations, you probably have an IBM 3.3x DOS
running, whereas on at least one COMPAQ I tested, the values are
indeed different!

Ok, now lets see what happens when we try to use the environment to
pass information BACK from within a CALLED module, using first
COMMAND /C and then CALL.

We begin by setting the environment variable "RETCODE" to null,
and then we invoke CALLX0.BAT to change the value.

Then we do the same thing again, using CALL rather than COMMAND /C to
invoke CALLX0.BAT.




  3 Responses to “Category : Batch File Utilities - mostly for DOS
Archive   : ABFS.ZIP
Filename : ADVBAT13.TXT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/