Microsoft KB Archive/158141

= How to Specify Additional Environment Space under Windows NT =

PSS ID Number: 158141

Article Last Modified on 5/12/2003

-

The information in this article applies to:


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional
 * Microsoft Windows NT Workstation 3.5
 * Microsoft Windows NT Workstation 3.51
 * Microsoft Windows NT Workstation 4.0
 * Microsoft Windows NT Server 3.5
 * Microsoft Windows NT Server 3.51
 * Microsoft Windows NT Server 4.0

-



This article was previously published under Q158141





SUMMARY
This article explains how to specify additional space for environment variables. This can be useful for systems with extremely long path statements in both the system and the Autoexec.bat file.



MORE INFORMATION
To specify additional space for environment variables:
 * 1) In Control Panel, double-click System.
 * 2) In the Environment list, select ComSpec.
 * 3) To increase the amount of environment space, use the following syntax:

ComSpec = \system32\cmd.exe /e:2048

where  is the drive and folder where the Windows NT system files are located.

In Windows 2000:

 * 1) In Control Panel, double-click System.
 * 2) Click the Advanced tab, click Environment Variables. In the System variables, click ComSpec.
 * 3) To increase the amount of environment space, use the following syntax:

ComSpec = \system32\cmd.exe /e:2048

where  is the drive and folder where the Windows 2000 system files are located.

The maximum size for the /E: switch is 32768 bytes.

Additional query words: prodnt increase length out of environment space error

Keywords: kbnetwork KB158141

Technology: kbwin2000AdvServ kbwin2000AdvServSearch kbwin2000Pro kbwin2000ProSearch kbwin2000Search kbwin2000Serv kbwin2000ServSearch kbWinAdvServSearch kbWinNT350search kbWinNT351search kbWinNT400search kbWinNTS350 kbWinNTS350search kbWinNTS351 kbWinNTS351search kbWinNTS400 kbWinNTS400search kbWinNTsearch kbWinNTSsearch kbWinNTW350 kbWinNTW350search kbWinNTW351 kbWinNTW351search kbWinNTW400 kbWinNTW400search kbWinNTWsearch

-

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

© 2003 Microsoft Corporation. All rights reserved.