courtney@hp-pcd.UUCP (courtney) (03/25/86)
Keeping the ENVIRONMENT size discussion alive... I am trying to do nested batch file processing by forking a COMMAND shell. The sub-process batch file requires an "enlarged" environment space. I have been unable to generate a command shell with the same (enlarged) environment space as the parent process. I am running DOS 3.1. I have tried to achieve this in three ways: 1) In the CONFIG.SYS file, do `SHELL=C:\COMMAND.COM /P C:\ /E:60`. Inside the user-invoked batch file, do `COMMAND /C FOO.BAT`. 2) The COMMAND.COM `debug` patch for V3.1 environment size enlargement. Then do the fork in a batch file command line `COMMAND /C FOO.BAT`. 3) A guess: using the syntax `COMMAND /E:60 /C FOO.BAT`. Has anybody else experienced this problem? Got a fix?