🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #7766

Re: Batch files and environment space

#7766
From: Steve Hastings
Date: Thu, 27 Dec 1990 19:35
24 lines
1632 bytes
>>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    ` \\==|
Technical Details
Message-ID: <60082@microsoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!steveha
References: <1990Dec24.144159.13500@maverick.ksu.ksu.edu> <2778c53e-8c2.1comp.windows.ms-1@vpnet.chi.il.us>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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