"Invalid COMMAND.COM" Restarting Computer in MS-DOS Mode

Last reviewed: April 2, 1997
Article ID: Q130329
The information in this article applies to:
  • Microsoft Windows 95

SYMPTOMS

When you choose the "Restart the computer in MS-DOS mode" option in the Shut Down Windows dialog box and then click OK, you may receive the error message "Invalid COMMAND.COM," or the screen may go black and then Windows restarts.

CAUSE

This error can occur if the "Exit to Dos.pif" file points to a different version of COMMAND.COM from the one loaded in the computer's memory. This error can also occur if the "Exit to Dos.pif" file or the Dosprmpt.pif file is set to a directory other than Windows.

RESOLUTION

To make sure that the correct COMMAND.COM file is pointed to by the "Exit to Dos.pif" file and the "MS-Dos Prompt.pif" file, follow these steps:

  1. In My Computer or Windows Explorer, use the right mouse button to click the "Exit to Dos.pif" file in the Windows folder, then click Properties on the menu that appears.

  2. On the Program tab, make sure that command in the Cmd Line box points to the COMMAND.COM file in the Windows folder.

  3. Repeat steps 1-2 for the Dosprmpt.pif file.

MORE INFORMATION

If on the Program tab in the properties for the "Exit to DOS.pif" file the Close On Exit check box is not selected, you see the error message. If this check box is selected, Windows restarts and you may not be able to see the error message.


Additional query words: 95
Keywords : kberrmsg kbusage win95 wpp95
Version : 95
Platform : WINDOWS


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: April 2, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.