4.1150 Responses: Environment Space (3/76)
Elaine Brennan & Allen Renear (EDITORS@BROWNVM.BITNET)
Mon, 11 Mar 91 17:06:35 EST
Humanist Discussion Group, Vol. 4, No. 1150. Monday, 11 Mar 1991.
(1) Date: Fri, 8 Mar 91 17:42:18 EST (27 lines)
From: Ed Haupt <haupt@pilot.njin.net>
Subject: environment size
(2) Date: Fri, 8 Mar 91 18:47:43 CST (19 lines)
From: Richard Goerwitz <goer@sophist.uchicago.edu>
Subject: out of environment space
(3) Date: Sat, 09 Mar 91 07:43:43 CDT (30 lines)
From: "Eric Johnson DSU, Madison, SD 57042" <ERIC@SDNET>
Subject: Re: 4.1147 ENVIRONMENT SIZE
(1) --------------------------------------------------------------------
Date: Fri, 8 Mar 91 17:42:18 EST
From: Ed Haupt <haupt@pilot.njin.net>
Subject: environment size
I'm sure this will be the 80th answer, but
to change (expand) your environment, you must put a shell statement in
the CONFIG.SYS file,
SHELL=C:\COMMAND.COM /E:bytes /P
notes:
1) this has to be in CONFIG.SYS, not AUTOEXEC.BAT
2) the COMMAND.COM file has to have a path (C:\) since the path statements
in the autoexec will not have functioned yet.
3) Your environment has 128/160 bytes depending on which version, so 'bytes'
is the number of bytes to use, 512 is common.
4) you must put the /p switch in command.com or else it won't remain.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Ed Haupt | | OFFICE (201) 893-4327
Dept. of Psychology | "Kein bier, | DEPT. (201) 893-5201
Montclair State College | kein Arbeit." | INTERNET:haupt@pilot.
Montclair, NJ 07043 | | njin.net
USA | | BITNET:Haupt@njin
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
(2) --------------------------------------------------------------35----
Date: Fri, 8 Mar 91 18:47:43 CST
From: Richard Goerwitz <goer@sophist.uchicago.edu>
Subject: out of environment space
This common problem has a simple resolution. The trouble is that
it's not so obvious where to find it. Check the manual page on
"command(.com)," and then look over the sample config.sys files in
the section on config.sys commands. In particular, look over the
shell command. The idea is to tell the system to call command.
com as your shell (the way it normally would). The shell command,
though, lets you supply arguments to command.com. You'll want to
use the /p and /e:xxx arguments (where xxx is something bigger
than the default environment space of 160).
Hope this helps.
-Richard (goer@sophist.uchicago.edu)
(3) --------------------------------------------------------------36----
Date: Sat, 09 Mar 91 07:43:43 CDT
From: "Eric Johnson DSU, Madison, SD 57042" <ERIC@SDNET>
Subject: Re: 4.1147 ENVIRONMENT SIZE
In reply to Hardy Cook's question about how to provide more environment
space on his PC, a line can be added to his CONFIG.SYS file (not, as he
said, to the AUTOEXEC.BAT file).
The DEVICE command can be placed in the CONFIG.SYS file to allow system
programmers to load a command processor other than COMMAND.COM, but the
DEVICE command can be used to load the usual COMMAND.COM and also add a
parameter enlarging the environment size. The following line placed in
the CONFIG.SYS file will double the minimum environment size:
SHELL=COMMAND.COM /P /E:320
The number following "/E:" is the number of bytes of environment size;
any number from 160 to 32768 can be used.
This works in all versions of DOS 3.1 and after, but in version 3.1
the number after "/E:" will indicate a 16-byte unit (thus, in version
3.1, "/E:20" will set the environment at 320 bytes).
The first part of this added line, especially the "/P" parameter, is
important since it tells DOS what command processor to load and to
keep permanent.
-- Eric Johnson
ERIC@SDNET.BITNET