Support for early DOS versions

Prev Next Home Home Table Of Contents Index

SUPPORT FOR EARLY DOS VERSIONS

There are two main differences between DOS versions earlier than 3.3 and versions 3.3 and above. One is the CALL command for batch files and the other is the way you specify environment space when using COMMAND.COM.

I have enhanced the support for early DOS versions (3.1, 3.2). MarxMenu executes COMMAND /C /E:nn (batchfile) >NUL to have one batch file call another. The first two lines of the batch files created are as follows:


 ECHO OFF
 CTTY CON
 ....

This eliminates the ECHO OFF from being seen.

Also whenever possible, when MarxMenu loads a copy of COMMAND.COM, it adds the /E:nnn command to set the environment space to the same as that of the Master Environment. In version 3.1 it is translated to paragraphs instead of bytes.

One thing to note in early versions of DOS. If you run a batch file under COMMAND /C and your batch file has SET commands to set environment variables, the changes you make will disappear as soon as you get back to MARX.BAT. Why? Because you loaded another COMMAND.COM and the SET commands set its environment. When this COMMAND.COM ends, it takes its environment with it. Under DOS 3.3 or later, which uses CALL instead of another shell, the SET commands live. (Yet another reason to upgrade).

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home