>As I mentioned when this topic was discussed previously, another
>way to handle this is to patch command.com with debug to increase
>the default environment size. I did this with my command.com in
>MS-DOS 5.0 to change it from 256k to 512k. This was several years
>ago, and I doubt if I can find the docs, but I know it can be done.
>
>Also, with OpenDOS 7.1 the /e switch with the shell=command.com
>line in config.sys seems to change the default environment size
>as well as the size of the master environment, so that there is
>no problem to begin with.
>
>Howard E.

I checked my MS-DOS 5 User's Guide and Reference, and you don't have to hack
COMMAND.COM.  COMMAND.COM has a parameter /e:nnn where nnn = number of bytes
desired for environment.  MS-DOS 6.22 has this feature too, so does DR-DOS 7.03.
I have a line in C:\CONFIG.SYS (for DR-DOS 7.03)
SHELL=C:\COMMAND.COM C:\ /E:2048 /P
which reserves 2048 bytes for environment variables.

Reply via email to