Troubleshooting Common Problems
Page 2 of 4

Environment Space Errors in Windows 95

When setting environment variables such as CLASSPATH in Windows 95, users sometimes get a message such as "Not enough environment space."

To fix this, enlarge the environment space. To enlarge the environment space, set the following command in the CONFIG.SYS file:

SHELL=C:\Windows\COMMAND.COM /P /E:4096

COMMAND.COM is found in the Windows installation directory (usually C:\windows).

  • /P means to leave COMMAND.COM running between commands (i.e, don't exit when the user issues the dir command).
  • /E: signifies how much environment space to reserve for each process. 4K is usually enough.