Microsoft KB Archive/90197

= WFWG Err Msg: Invalid or Missing COMMAND.COM =

Article ID: 90197

Article Last Modified on 10/10/2003

-

APPLIES TO


 * Microsoft Windows for Workgroups 3.1
 * Microsoft Windows for Workgroups 3.11

-



This article was previously published under Q90197



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.

Additional query words: 3.10 3.11 hang hung locked freeze frozen

Keywords: KB90197

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.