khoo@sdl.UUCP (Yong Khoo) (01/30/89)
Can anyone provide info on expanding environment space for COMMAND.COM. My copy of setenv.exe that comes with Microsoft C 5.0 does not seem to work with MSDOS 3.20. Thanks
wnr@otter.hpl.hp.com (Nigel Rea) (02/01/89)
Hi there, A quick solution to increasing the enviroment space is to use the /E:n parameter when invoking command.com (where n is the new size you want the enviroment to be) Alternatively use norton utilities NU to search through command.com, for the old enviroment size (in hex). This is in low-Byte,high-Byte form, and occurs twice. It's risky but it works as well. bye ........Nigel ################################################################### # Nigel Rea # Hewlett Packard laboratories # # wnr@uk.ac.ukc.hplb # Filton Road # # wnr@uk.co.hp.hpl # Stoke Gifford # # wnr@hpl.hp.com # Bristol BS12 6QZ # # +44 272 799910 x.24197 # England # # fax 44,272,790554 # # ################################################################### flames about .signature >nul
alanf%smile@Sun.COM (Alan Fargusson @ peace with the world) (02/02/89)
In article <1134@khoo.sdl.UUCP>, khoo@sdl.UUCP (Yong Khoo) writes: > Can anyone provide info on expanding environment space for COMMAND.COM. > > My copy of setenv.exe that comes with Microsoft C 5.0 does not seem > > to work with MSDOS 3.20. > > Thanks I hate to say RTFM, but the answer is in there. Setenv.exe is for 2.x systems. For 3.x systems there is a line to add to config.sys. I don't remember exactly what it is but it is something like SHELL=COMMAND.COM /P:XXXX where XXXX is the size in paragraphs of the environment. /P is probably wrong so check the manual. I don't have access to MSC 5.0 anymore. - - - - - - - - - - - - - - - - - - - - - Alan Fargusson Sun Microsystems alanf@sun.com ..!sun!alanf
simcha@humming.UUCP (Simcha Lerner) (02/02/89)
To expand your environment, in your config.sys put an explicit shell declaration line as follows: shell=c:\command.com c:\ /p /e:nn where nn is the environment size. In 3.1 the /e option is an undocumented feature, and nn is set in paragraphs (number of bytes/16). In 3.2 and later, the /e option is documented, but nn is set in bytes, not paragraphs. the max. environment is 32KB, the min is 128B, and the default is 620B. For more information, look at the commands section of your dos manual for the command called "command". Also look in the section on config.sys for info on shell. [BTW: In the "old" days, various programs were around that would patch command.com to create a larger environment. The problem is that these programs were HIGHLY version specific, and could corrupt the command.com of another release of dos.] simcha lerner harvard!humming!simcha
ted@bangles.SGI.COM (Ted Wilcox) (02/03/89)
In article <1134@khoo.sdl.UUCP>, khoo@sdl.UUCP (Yong Khoo) writes: > Can anyone provide info on expanding environment space for COMMAND.COM. > > My copy of setenv.exe that comes with Microsoft C 5.0 does not seem > to work with MSDOS 3.20. With 3.2, you don't need to use setenv. I forget the exact format, but you can specify options in your config.sys file which set aside more environment space for command.com. I think it's in the DOS manual in the section on config.sys. Hope this helps. -- Ted. ted@sgi.com {sun|decwrl|pyramid|ucbvax}!sgi!ted
dani@ritcsh.UUCP (Dani Kadoch) (02/04/89)
In article <87891@sun.uucp> alanf%smile@Sun.COM (Alan Fargusson @ peace with the world) writes: >In article <1134@khoo.sdl.UUCP>, khoo@sdl.UUCP (Yong Khoo) writes: >> Can anyone provide info on expanding environment space for COMMAND.COM. >> My copy of setenv.exe that comes with Microsoft C 5.0 does not seem >> to work with MSDOS 3.20. > >I hate to say RTFM, but the answer is in there. Setenv.exe is for 2.x systems. >For 3.x systems there is a line to add to config.sys. I don't remember >exactly what it is but it is something like SHELL=COMMAND.COM /P:XXXX >where XXXX is the size in paragraphs of the environment. /P is probably wrong Yup, /P is wrong, it should be /E, and XXXX specifies the number of BYTES, not paragraphs to reserve for the environment space. So if you need to reserve 500 bytes this is what you should have in your config.sys: SHELL=COMMAND.COM /E:500 Hope this helps! Dani. -- +/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\+ > Dani Kadoch -- R&D director @ Computer Science House < > Rochester Institute of Technology < > UUCP:rochester!ritcv!ritcsh!dani MCIMail:dani BITNET:dnk8842@ritvax <
henders@mist.cs.orst.edu (B. Scott Henderson) (02/04/89)
To increase your environment space, simply add a line to your config.sys file that looks like: shell=[drive:][\path]command.com /e:xxxx /p where xxxx is the size in bytes you wish to reserve for the environment (it will be rounded up to the nearest paragraph boundary). The /p option disables the 'exit' command for this particular shell.
marc@rna.UUCP (Marc Johnson) (02/08/89)
>In article <1134@khoo.sdl.UUCP>, khoo@sdl.UUCP (Yong Khoo) writes: > Can anyone provide info on expanding environment space for COMMAND.COM. > My copy of setenv.exe that comes with Microsoft C 5.0 does not seem > to work with MSDOS 3.20. > I hope I can clarify some of the confusion on this: For DOS 3.1 and before, you need to say: shell=command.com /e:#### /p where #### is the number of 16-byte paragraphs you want to reserve. For DOS 3.2 and later, you need to say: shell=command.com /e:#### /p where #### is the number of BYTES you want. In both cases, the /p tells DOS to go ahead and execute AUTOEXEC.BAT after this command. You probably want this. You may also, of course, optionally specify a drive and directory path for command.com. Don't you just LOVE IBM?!?!?!? ;)-|-< Marc Johnson =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= = Marc Johnson BITNET: rna!marc@rockvax.bitnet = = Rockefeller Univ. Neurobiology UUCP: ...cmcl2!rna!marc = = New York City INTERNET: marc%rna@rocky2.rockefeller.edu = = (129.85.2.1) = = = = "Gimme the beat boys and free my soul, I wanna get lost in your rock & roll = = ...and drift away" = =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=