Help and Support
 

powered byLive Search

"Out of Environment Space" Running Batch File or Command Prompt

Article ID:261825
Last Review:January 27, 2007
Revision:1.2
This article was previously published under Q261825
On This Page

SYMPTOMS

When you start a batch file or use a command prompt, you may receive the following error message:
Out of environment space

Back to the top

CAUSE

The default space for environment variables is 256 bytes by default. More environment variables are being set than can fit in 256 bytes.

Back to the top

RESOLUTION

To work around this issue, use one of the following methods:

Back to the top

Method 1

1.Right-click the MS-DOS Prompt shortcut, and then click Properties.
2.Click the Memory tab.
3.In the Initial Environment box, set the initial environment size you want (from 256 to 4,096 bytes, in 256-byte increments).
4.Click OK.

Back to the top

Method 2

Edit the Autoexec.bat file to include any environment variables that you need to set, and then reboot the computer. The changes are incorporated into the registry and the environment variable size is increased.

Back to the top

MORE INFORMATION

Windows Millennium Edition ignores Config.sys statements to increase the environment variable size.

For a list of command-line options, type command.com /?.

Back to the top


APPLIES TO
Microsoft Windows Millennium Edition

Back to the top

Keywords: 
kberrmsg kbprb kbshell KB261825

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.