Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!steveha From: steveha@microsoft.UUCP (Steve Hastings) Newsgroups: comp.windows.ms Subject: Re: Batch files and environment space Keywords: batch environment Message-ID: <60082@microsoft.UUCP> Date: 27 Dec 90 19:35:34 GMT References: <1990Dec24.144159.13500@maverick.ksu.ksu.edu> <2778c53e-8c2.1comp.windows.ms-1@vpnet.chi.il.us> Reply-To: steveha@microsoft.UUCP (Steve Hastings) Organization: Microsoft International Products Group Lines: 24 >>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. For more information on command-line switches to COMMAND.COM, read your DOS manual. This material belongs in some kind of Frequently Asked Questions posting. -- Steve "I don't speak for Microsoft" Hastings ===^=== ::::: uunet!microsoft!steveha steveha@microsoft.uucp ` \\==|