Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to fix "Out of environment space" error?

4 views
Skip to first unread message

Shushen Chia

unread,
Jun 26, 1995, 3:00:00 AM6/26/95
to
Hi,

I got an error message like "out of environment space".
Could anybody give me some advise?

Thanks a lot!

Tom Chia


Kevin D. Quitt

unread,
Jun 27, 1995, 3:00:00 AM6/27/95
to
Shushen Chia <schia> wrote:
>I got an error message like "out of environment space".
>Could anybody give me some advise?

From DOS? Look at the SHELL= line in your CONFIG.SYS. Mine is:

SHELL=c:\dos\command.com c:\dos /p /e:1200

What you're looking for is the last parameter, which specifies the
size of the environment.

--
#include <standard.disclaimer>
_
Kevin D Quitt USA 91351-4454 96.37% of all statistics are made up


John E. Davis

unread,
Jun 27, 1995, 3:00:00 AM6/27/95
to
In article <1995Jun27.0...@llyene.jpl.nasa.gov>,
k...@emoryi.jpl.nasa.gov (Kevin D. Quitt) wrote:
: Shushen Chia <schia> wrote:
: >I got an error message like "out of environment space".
: >Could anybody give me some advise?
:
: From DOS? Look at the SHELL= line in your CONFIG.SYS. Mine is:
:
: SHELL=c:\dos\command.com c:\dos /p /e:1200
:
: What you're looking for is the last parameter, which specifies the
: size of the environment.

Also, if you simply put all your set statements in your autoexec.bat file
BEFORE any executable statements, DOS will automatically enlarge the
environment as needed.

--John


Kevin D. Quitt

unread,
Jun 27, 1995, 3:00:00 AM6/27/95
to
da...@space.mit.edu (John E. Davis) wrote:
>Also, if you simply put all your set statements in your autoexec.bat file
>BEFORE any executable statements, DOS will automatically enlarge the
>environment as needed.

I believe that's not true for all versions of DOS. Certainly the newer ones.

John Davis

unread,
Jun 29, 1995, 3:00:00 AM6/29/95
to
I run almost all of my programs from batch files. If a program requires
an environment variable, I'll set the var in the batch file for that
program before it actually runs the program. The line following the
program will set the var back to nul, thus releasing the memory. In
addition, I keep my path statement and similar "permanent" environment
specs to a bare minimum by keeping all the batch files in one directory.
Hope this helps...
- John Davis |The views and opinions
3rd Generation Music |expressed may not be the
LCH...@prodigy.com |views of my employ... Wait a
|minute! I'm self-employed!!


Brian Smith

unread,
Jul 4, 1995, 3:00:00 AM7/4/95
to
In <3smv21$o...@jhunix1.hcf.jhu.edu> Shushen Chia <schia> writes:
>
>Hi,

>
>I got an error message like "out of environment space".
>Could anybody give me some advise?
>
>Thanks a lot!
>
>Tom Chia
>

I just ran into this the other day. I fixed it by running memmaker,
but this utility only exists on recent versions of MSDOS ( i think >=
6.00). Not real sure why this worked, but it did. I later learned
that you can specify your environment space in config.sys with the
line:
SHELL=C:\DOS\COMMAND.COM /E:nnnn
where nnnn is the amount of memory you want for the the environment in
bytes. see the help page for command for more info.

0 new messages