DISKCOPY is used to duplicate floppy disks. Any data on the destination disk is overwritten.
DISKCOPY drive1: [drive2:] [/1] [/V] [/M]
|drive1||Drive containing disk to be copied from (and to, if the computer has only one floppy drive) .|
|drive2||Drive containing disk to be copied to (if different from drive1.|
|/1||Copies only the first side of the disk.|
|/V||Verifies that the information is copied correctly.|
|/M||Force multi-pass copy using memory only.|
- DISKCOPY is designed to duplicate standard floppy disks by making a byte-bbyte copy of the source disk to the destination disk.
It follows that:
- Once the DISKCOPY command has been entered, prompts to insert source and destination disks are displayed as the process requires. When a single drive is used for both the source and destination disks, an image of the source disk is stored in the directory specified by the TEMP environmental variable. How much disk swapping is required depends on the capacity of the disks and the free space in TEMP.
- If the destination disk is not formatted, it is automatically formatted appropriately before the copying process begins.
|0||The copy operation was successful|
|1||A non-fatal read/write error occurred|
|2||Copying was terminated by Ctrl-C before it was complete.|
|3||A critical error occurred.|
|4||An initialization error occurred. Most often caused by the two floppy disks being of different types (1.44M and 720K perhaps?)|
As mentioned in "Note #1" above, DISKCOPY is designed to make identical copies of floppies and it is generally understood that it cannot be used to copy the contents of a 1.2Mb 5.25" floppy onto a 1.4Mb 3.5" floppy (or even a 720Kb 3.5" floppy to a 1.4Mb floppy). In most cases the simple workaround is to use COPY or XCOPY to copy the files from the one disk to the other. However, there are occasions when the "simple" workaround is not appropriate for one reason or another and alternative measures are called for.
Kevin G. Rhoads describes a way to make DISKCOPY work between disks of different formats by modifying the boot sector of the destination disk to match that of the source.
|Yes, you CAN diskcopy a 1.2M onto a 1.44M floppy -- BUT you need to be tricky.
The easiest way to do it, is to use DEBUG or a disk editor and copy the boot sector of the 1.2M onto the boot sector of the 1.44M.
Then remove the 1.44M and access the 3.5" drive, abort at the error message. This forces DOS to recognize the floppy ain't there no more. When you re-insert the 1.44M with the 1.2M boot sector, DOS will read the boot sector and "recognize" the disk as a 1.2M formatted disk. NOW you can diskcopy from the 1.2M 5.25" floppy onto the "1.2M" 3.5" floppy.
This trick is useful when migrating old software's install disks to a machine with only a 3.5" drive. I have used it with several versions of DOS on several machines -- I only saw it fail once, on a machine with a strange BIOS that had lots of other compatibility problems.
The "hybrid" disk will still be formatted to 18 sectors/track, but DOS will recognize the existence of only the first 15 sectors on each track. Similar tricks can be used to place a 720k disk image on a 1.2M disk; or a 360k disk image on any of the other standard disk types.
The hybrid disk will work with DOS 3.2 and later, Win95 (original), probably with Win95 OSR2 and Win98, and probably NOT with NT.
The "trick" to all these sub-formatted hybrid disks, is to recognize that DOS loads the info. on the disk layout from the boot sector when it first recognizes there is a new disk in the drive. To change what DOS thinks the disk layout is, you change what is in the boot sector THEN force DOS to re-register the disk.
Several things can get DOS to re-register the disk, but the only way that works reliably under all DOS versions in all cases seems to be taking the disk out of the drive and trying to access it, then aborting the access. Then when the disk is re-inserted, DOS will treat it as a new floppy and register the disk parameters from the boot sector.
Kevin G. Rhoads, Ph.D. (The Cheshire Cat for official Internet mascot.)
|File Name||Default Location||Dos Ver.||Win Ver.||Size||Date||Source|
Superscripts denote which same size files, if any, are identical (using FC).