How to Specify Additional Environment Space under Windows NT

ID: Q158141


The information in this article applies to:
  • Microsoft Windows NT Workstation versions 3.5, 3.51, 4.0
  • Microsoft Windows NT Server versions 3.5, 3.51, 4.0
  • Microsoft Windows 2000 Professional
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server


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 = <drive:\windir>\system32\cmd.exe /e:2048

    where <drive:\windir> 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 = <drive:\windir>\system32\cmd.exe /e:2048

    where <drive:\windir> is the drive and folder where the Windows 2000 system files are located.


The maximum size for the environment is 32768 bytes.

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

Keywords : kbnetwork ntconfig NTSrvWkst
Version : WINDOWS:2000; winnt:3.5,3.51,4.0
Platform : WINDOWS winnt
Issue type :


Last Reviewed: February 3, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.