Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!hellgate.utah.edu!hamblin.byu.edu!byuvax!byuvm!cunyvm!slvqc From: SLVQC@CUNYVM (Salvatore Saieva) Newsgroups: comp.windows.ms Subject: Re: Increasing Environment Space Message-ID: <90186.142724SLVQC@CUNYVM.BITNET> Date: 5 Jul 90 18:27:24 GMT References: <90183.141937SLVQC@CUNYVM.BITNET> <55654@microsoft.UUCP> Organization: City University of New York/ University Computer Center Lines: 34 In article <55654@microsoft.UUCP>, steveha@microsoft.UUCP (Steve Hastings) says: > >In article <90183.141937SLVQC@CUNYVM.BITNET> SLVQC@CUNYVM (Salvatore Saieva) >writes: >>Is there a way to tell Windows to start a Non-Windows application >>with a larger environment? Any time I run a batch file (from Windows) >>that sets environment variables I get `out of environment space' >>errors. > >Make a PIF file for the batch file you want to run, say "FOO.BAT." Inside >FOO.PIF, when you specify what to run, instead of saying "FOO.BAT" you >should say "COMMAND.COM /E:1024 /C FOO.BAT". > Ok, this method works if the `Program Filename' in the .pif file is COMMAND.COM and the `Optional Parameters' is /e:1024 /c foo.bat. If the Program Filename is supplied as ``command.com /e:1024 /c foo.bat'', a window pops up saying that it cannont find the file COMMAND.COM /E:1024... Some batch files I run don't accept parameters and I can define a working .pif for these using /e:1024 /c as an Optional Parameter in the PIF Editor. However, many of my batch files accept parameters and defining the .pif in this manner doesn't allow Windows to prompt me for the parameter before running the batch file. It's a big problem. What is needed is a flag in either win.ini or system.ini specifying default parameters for command.com whenever Windows needs to spawn command.com (ie: to run a batch file from a .pif). This seems so simple that I can't believe Windows doesn't allow for this functionality. Maybe there's another solution? Sal. ------- Salvatore Saieva Internet: slvqc@cunyvm.cuny.edu Queens College, Academic Computer Center BITNET: slvqc@cunyvm.bitnet 65-30 Kissena Blvd, Flushing, N.Y. 11367 DeskNet: (718) 520-7662