Microsoft KB Archive/261825

= &quot;Out of Environment Space&quot; Running Batch File or Command Prompt =

Article ID: 261825

Article Last Modified on 1/27/2007

-

APPLIES TO


 * Microsoft Windows Millennium Edition

-



This article was previously published under Q261825



SYMPTOMS
When you start a batch file or use a command prompt, you may receive the following error message:

Out of environment space



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



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

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.

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.



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 /? .

Keywords: kberrmsg kbprb kbshell KB261825

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.