How to Adjust MS-DOS Application Environment Size

Last reviewed: March 28, 1997
Article ID: Q161564
The information in this article applies to:
  • Microsoft Windows NT Workstation version 4.0
  • Microsoft Windows NT Server version 4.0

SUMMARY

Some MS-DOS applications may require specific allocations of environment space. In some cases, it may be desired to trim or expand this resource for troubleshooting purposes. Microsoft Windows NT version 4.0 allows for this setting to be customized.

MORE INFORMATION

The environment size for a single application may be adjusted via the desktop or via the Config.nt file.

To adjust via the desktop:

  1. Right-click on the application shortcut.

  2. Examine the properties for the shortcut and select the Memory tab.

  3. Type or select a value from the list if you wish to customize this
setting. (The initial environment setting is set to AUTO by default. The value of AUTO causes the operating system to refer to the SHELL= line in the Config.nt file, if it exists.)

To adjust via the Config.nt file:

NOTE: Editing the Config.nt will change the default environment size.

  1. To use a specific Config.xx file for an application, specify the file to
use by going to the Program tab of the shortcut's properties and clicking on the Windows NT button.

  1. Edit or create the SHELL= line in the Config.nt file accordingly. For
example, to create an environment size of 512 bytes, the following may be used:

   shell=%systemroot%\system32\command.com /e:512

The default environment size is 256 bytes, with a maximum possible size of 32 KB.


Additional query words: nt dos environment
Keywords : kbenv nt16ap ntdosap NTSrvWkst
Version : 4.0
Platform : WinNT


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 28, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.