KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q121857: MS-DOS Setup Displays Error: Setup Error Detected

Article: Q121857
Product(s): Microsoft Disk Operating System
Version(s): MS-DOS:6.0,6.2,6.21,6.22
Operating System(s): 
Keyword(s): 
Last Modified: 26-NOV-1999

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft MS-DOS operating system versions 6.0, 6.2, 6.21, 6.22 
-------------------------------------------------------------------------------

SYMPTOMS
========

When you are installing MS-DOS Upgrade or MS-DOS StepUp, the following error
message is displayed:

  SETUP ERROR DETECTED

  The following disk error was detected. The listed file was not copied.

  Error reading --> COMMAND.DAT

  To exit Setup, press ENTER.

CAUSE
=====

The Uninstall process of Setup displays the above error message when it is
trying to copy C:\COMMAND.COM to A:\COMMAND.DAT on the Uninstall disk.

This error occurs when COMMAND.COM is cross-linked with another file, has
allocation unit errors, or there is a bad sector on the disk.

RESOLUTION
==========

You can correct this problem by replacing the COMMAND.COM file. Copy the
COMMAND.COM file from your DOS directory over the existing COMMAND.COM file in
the root directory using the following commands:

  attrib -r command.com

  ren command.com command.old

  copy c:\dos\command.com c:\command.com

NOTE: If the Uninstall portion of setup is bypassed by using the SETUP /G switch,
the error does not occur. Also, using CHKDSK /F or SCANDISK may allow you to
work around this problem.


Additional query words: 6.00 6.20 6.21 6.22 setup error err msg command.dat step-up

======================================================================
Keywords          :  
Technology        : kbMSDOSSearch kbMSDOS621 kbMSDOS622 kbMSDOS620 kbMSDOS600
Version           : MS-DOS:6.0,6.2,6.21,6.22

=============================================================================

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.

Copyright Microsoft Corporation 1986-2002.