Microsoft DOS DATEDBLSPACEDEBUGDEFRAGDELDELOLDOSDELTREEDEVICE DriversDEVICEHIGHDEVICEDIRDISKCOMP Draft for Information Only
ContentMS DOS Command: DISKCOPY.COM
MS DOS Command: DISKCOPY.COMReference from Microsoft MS-DOS cmd help DescriptionCopies the entire contents of one floppy disk to another floppy disk. DISKCOPY writes over the existing contents of the destination disk as it copies the new information to it. This command determines the number of sides to copy based on the source drive and disk. SyntaxDISKCOPY [drive1: [drive2:]] [/1] [/V] [/M]
Parameters
Switches
Related CommandsFor information about copying one or more files, see the COPY command. For information about copying directories and subdirectories, see the XCOPY command. For information about comparing two disks to see if they are identical, see the DISKCOMP command. RemarksInvalid drive for DISKCOPYThe DISKCOPY command works only with uncompressed removable disks, such as floppy disks. You cannot use DISKCOPY with a hard disk or a network drive. If you specify a hard disk drive for drive1 or drive2, DISKCOPY displays the following error message: Invalid drive specification Specified drive does not exist or is non-removable DISKCOPY messagesThe DISKCOPY command prompts you to insert the source and destination disks and waits for you to press any key before continuing. After copying, DISKCOPY displays the following message: Copy another diskette (Y/N)? If you press Y, DISKCOPY prompts you to insert source and destination disks for the next copy operation. To stop the DISKCOPY process, press N. If you are copying to an unformatted floppy disk in drive2, DISKCOPY formats the disk with the same number of sides and sectors per track as are on the disk in drive1. DISKCOPY displays the following message while it formats the disk and copies the files: Formatting while copyingIf the capacity of the source disk is greater than that of the destination disk and your computer can detect this difference, DISKCOPY displays the following message: Drive types or diskette types not compatible Disk serial numbersIf the source disk has a volume serial number, DISKCOPY creates a new volume serial number for the destination disk and displays the number when the copy operation is complete. Omitting drive parametersIf you omit the drive2 parameter, DISKCOPY uses the current drive as the destination drive. If you omit both drive parameters, DISKCOPY uses the current drive for both. If the current drive is the same as drive1, DISKCOPY prompts you to swap disks as necessary. Using one drive for copyingWhen you use a single drive as both the source and destination drive, DISKCOPY stores an image of the source disk in the directory specified by the TEMP environment variable. If there is not enough space on that drive to contain the source-disk image, you might have to swap floppy disks. DISKCOPY prompts you each time you should insert a disk in the drive. DISKCOPY reads from the source disk, writes to the destination disk, and prompts you to insert the source disk again. This process continues until the entire disk has been copied. Avoiding disk fragmentationBecause DISKCOPY makes an exact copy of the source disk on the destination disk, any fragmentation on the source disk is transferred to the destination disk. Fragmentation is the presence of small areas of unused disk space between existing files on a disk. A fragmented source disk can slow down the finding, reading, or writing of files. To avoid transferring fragmentation from one disk to another, use either the COPY command or the XCOPY command to copy your disk. Because COPY and XCOPY copy files sequentially, the new disk is not fragmented. Copying Startup disksIf you use the DISKCOPY command to copy a startup disk, the copy will also be a startup disk. If you use COPY or XCOPY to copy a startup disk, the copy usually will not be a startup disk. DISKCOPY exit codesThe following list shows each exit code (ERRORLEVEL parameter) and gives a brief description of its meaning:
You can use the ERRORLEVEL parameter on the IF command line in a batch program to process exit codes returned by DISKCOPY. For an example of a batch program that processes exit codes, see the CHOICE command. ©sideway ID: 110700161 Last Updated: 7/25/2011 Revision: 0 Latest Updated Links
![]() ![]() ![]() ![]() ![]() |
![]() Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 18 Reference 79 Computer Hardware 254 Software Application 213 Digitization 37 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2025 Sideway . All rights reserved Disclaimers last modified on 06 September 2019