Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!sol.ctr.columbia.edu!emory!utkcs2!stc06!rm3 From: rm3@stc06.ornl.gov (MCBROOM R C) Newsgroups: comp.windows.ms Subject: Re: Batch files and environment space Keywords: batch environment Message-ID: <1990Dec28.160254.13452@cs.utk.edu> Date: 28 Dec 90 16:02:54 GMT References: <1990Dec24.144159.13500@maverick.ksu.ksu.edu> <2778c53e-8c2.1comp.windows.ms-1@vpnet.chi.il.us> <60082@microsoft.UUCP> Sender: news@cs.utk.edu (USENET News System) Reply-To: rm3@stc06.ctd.ornl.gov (MCBROOM R C) Organization: Oak Ridge National Lab Lines: 20 In article <60082@microsoft.UUCP> steveha@microsoft.UUCP (Steve Hastings) writes: >>>Author: [Donald J Roufa] >>>Windows ver. 3 spawns a shell with only 160 bytes of environment >>>Isn't there some way to tell Windows to run batch files with more >>>environment space available to them? > >On a case-by-case basis, there is. In Program Manager, choose File >Properties. Edit the Command Line to say "COMMAND.COM /e:xxxx /c foo.bat" >where xxxx is how many bytes of environment space you want. I use 1024. > >From then on, when you double-click that icon, the batch file will run with >sufficient environment space. > >To ensure that your DOS Prompt has enough environment space, either edit >its Command Line to say "COMMAND.COM /e:xxxx" or make a PIF file for it >that includes that Command Line. I use the PIF file, since that way I can >assign a hot key to zap into that DOS shell. Putting SHELL = COMMAND.COM /E:XXXX/P in your config.sys provides a general solution also for the DOS versions that support SHELL.