JSI Tip 3396. When you exit an MS-DOS program, Windows 2000 issues 'Invalid COMMAND.COM/Cannot load COMMAND, system halted'?

Jerold Schulman

February 21, 2001

1 Min Read
ITPro Today logo in a gray background | ITPro Today


When you exit an MS-DOS program, Windows 2000 issues:

Invalid COMMAND.COMCannot load COMMAND, system halted

The MS-DOS windows stops responding.

The problem occurs because the ComSpec environment variable is not set to a CMD.EXE file.

To resolve the issue:

1. Close the hung window or use Task Manager to End Task.

2. Use Notepad to edit %SYSTEMROOT%SYSTEM32AUTOEXEC.NT.

3. If a ComSpec= line exists, remove it.

4. Start / Settings / Control Panel / System / Advanced / Environment Variables.

5. Select the ComSpec line and press Edit.

6. Set the ComSpec Environment Variable to:

    %SystemRoot%system32cmd.exe




Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like