Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!helios.ee.lbl.gov!nosc!cod!baird From: baird@cod.NOSC.MIL (John M. Baird) Newsgroups: comp.sys.ibm.pc Subject: Re: Question on Env Space Size Message-ID: <1554@cod.NOSC.MIL> Date: 12 Jun 89 15:11:17 GMT References: <6173@pdn.paradyne.com> Organization: Naval Ocean Systems Center, San Diego Lines: 40 From article <6173@pdn.paradyne.com>, by bowhall@gumby.paradyne.com (Richard Bowhall): > How do I set the size of my environment space so that it can be larger > then the DOS default? (Here we go with another endless series of partial answers, similar to the @ECHO OFF series. On-line DOS help has the following to say. The part you want is the /E option of the SHELL line in your CONFIG.SYS file. John Baird, Naval Ocean Systems Center, San Diego ) SHELL SHELL=[d1:][pathname1]filename1[.ext1] [d2:][pathname2] /P [/E:nn] [/MSG] [DOS 4.0 only] [d1:][pathname1]filename1[.ext1] is the name and location of the program to be loaded at system startup time to respond to (process) command lines entered from the keyboard, sometimes called the command processor. This is typically C:\ (the default on a system with a hard disk) or A:\ (the default on a system with diskettes only). [d2:][pathname2] is the path to be used after system startup if the program needs to be reloaded from disk into memory. A reason for making this different from [d1:][pathname1] would be to use a virtual disk. /P keeps the program from trying to unload itself when AUTOEXEC.BAT terminates. It is not required, but something will break if it is left off. /E specifies the size of the DOS environment space where SET variables are stored. For DOS 3.1, nn is the number of 16-character paragraphs to be allocated (maximum of 62 paragraphs). For later levels of DOS, it is the number of characters to allocate (minimum of 128, maximum of 32767, default is 620). /MSG causes error messages to be read into memory at boot time for later display on the screen, rather than being read in from disk as needed. The SHELL command permits you to write and use your own program to process keyboard commands. Few people do that. A more frequent use is to expand the DOS environment space with the /E option so that a long PATH can coexist with several environment variables. An environment variable COMSPEC is created in the DOS environment space to save the [d2:][pathname2] for later reference.