MS-DOS Err Msg: Could Not Copy COMMAND.COM to Target... (96061)



The information in this article applies to:
    Microsoft MS-DOS operating system 6.0
    Microsoft MS-DOS operating system 6.2
    Microsoft MS-DOS operating system 6.21
    Microsoft MS-DOS operating system 6.22

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


Modification Type: Major Last Reviewed: 11/22/1999
Keywords: KB96061