Microsoft KB Archive/96061

= MS-DOS Err Msg: Could Not Copy COMMAND.COM to Target... =

Article ID: 96061

Article Last Modified on 11/22/1999

-

APPLIES TO


 * Microsoft MS-DOS 6.0 Standard Edition
 * Microsoft MS-DOS 6.2 Standard Edition
 * Microsoft MS-DOS 6.21 Standard Edition
 * Microsoft MS-DOS 6.22 Standard Edition

-



This article was previously published under Q96061



SYMPTOMS
When you use the SYS command (SYS.COM) to transfer the MS-DOS startup file to another disk and COMMAND.COM is not in the root directory of your startup drive, you receive the following error message:

Could not copy COMMAND.COM onto target disk



CAUSE
Even if the COMSPEC environment variable and the SHELL= statement in the CONFIG.SYS file point to COMMAND.COM in a different directory, SYS.COM still looks for COMMAND.COM in the root directory of the startup drive.



WORKAROUND
To work around this problem, copy COMMAND.COM to the root directory of your startup drive (see your MS-DOS manual for information about copying files). Then, set the read-only attribute with the ATTRIB command. For example, type the following at the MS-DOS command prompt and press ENTER:

attrib +r command.com

Additional query words: 6.22 6.00 6.20 SYS COMMAND COMSPEC SHELL boot err msg

Keywords: KB96061

-

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

© Microsoft Corporation. All rights reserved.