Microsoft KB Archive/230205
Out of Environment Space Error Message in MS-DOS Programs
The information in this article applies to:
- Microsoft Windows 95
- Microsoft Windows 98
- Microsoft Windows 95 OEM Service Release, versions 1.0, 2.0, 2.1, 2.5
When you try to run an MS-DOS program in Windows, you may receive the following error message:
Out of environment space.
This issue can occur when you do not have enough memory in the MS-DOS environment to set an environment variable.
To resolve this issue, increase the default environment space available for MS-DOS programs. To do this, use one of the following methods:
Modify the Environment for All MS-DOS Programs
To increase the default environment space for all MS-DOS programs running in Windows, edit the Shell command in the Config.sys file. To do this, follow these steps:
- Click Start, click Run, type sysedit in the Open box, and then click OK.
- Click the Config.sys file, and then type a new Shell command or replace any existing Shell command with the following line
Modify the Environment for a Specific MS-DOS Program
To increase the default environment space for a specific MS-DOS program, follow these steps:
- Right-click the MS-DOS program icon, and then click Properties.
- On the Memory tab, type or click the number of kilobytes (KB) the program requires in the Initial Environment box, and then click OK.
Additional query words:
Keywords : kbenv kberrmsg
Issue type : kbprb
Technology : kbWin95search kbWin98search kbOPKSearch kbWin95 kbWin98 kbWin95OPKOSR25 kbWin95OPKOSR210
Last Reviewed: June 13, 2001