WFWG Err Msg: Invalid or Missing COMMAND.COM

Last reviewed: November 23, 1994
Article ID: Q90197
The information in this article applies to:
  • Microsoft Windows for Workgroups versions 3.1, 3.11

SYMPTOMS

If your AUTOEXEC.BAT file sets the path to COMMAND.COM using a SET COMSPEC= statement after the NET START command, then the NET START command may fail with the following error message and your machine may stop responding (hang):

   invalid or missing command.com

NOTE: This problem DOES NOT occur if COMMAND.COM is in the root directory.

CAUSE

You can set the path to COMMAND.COM with a SHELL= statement in the CONFIG.SYS file or the COMPSPEC= statement in the AUTOEXEC.BAT file.

The NET START command fails only when the path to COMMAND.COM is set via SET COMSPEC=, not SHELL=. This is more of a problem with MS-DOS version 4.0, which automatically installs the SET COMPEC= statement in the AUTOEXEC.BAT file, and with OEM versions of MS-DOS which do not put COMMAND.COM in the root directory.

WORKAROUND

To fix this problem, restart your computer using a startup (boot) disk in drive A, and edit the CONFIG.SYS and/or AUTOEXEC.BAT files. Move the SET COMSPEC= line so that it is above the NET START command, or remove the SET COMSPEC= statement and use the SHELL= line in the CONFIG.SYS file.


KBCategory: kbenv kberrmsg
KBSubcategory: wfw wfwg
Additional reference words: 3.10 3.11 hang hung locked freeze frozen


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: November 23, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.