Home > Commands A-M > Commands Da-Dr


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Compares the contents of two floppy disks.

This command performs a track-by-track comparison. Determines the number of sides and sectors per track to compare based on the format of the first disk you specify.



DISKCOMP [drive1: [drive2:]] [/1] [/8]

drive1: (v1.0 NT3.5)
Specifies the drive containing one of the floppy disks.
drive2: (v1.0 NT3.5)
Specifies the drive containing the other floppy disk.

/? (NTXP)
Display help.
/1 (v1.0 NT4 ONLY)
Compares only the first sides of the disks, even if the disks are double-sided and the drives can read double-sided disks.
/8 (v2.0 NT4 ONLY)
Compares only the first 8 sectors per track, even if the disks contain 9 or 15 sectors per track.


DISKCOPY - Copy the contents of one floppy disk to another.
FC - Compare two files or sets of files, and display the differences between them.
Equivalent Linux BASH commands:
cksum - Print CRC checksum and byte counts.

Invalid drive for DISKCOMP

The DISKCOMP command works only with floppy disks. You cannot use DISKCOMP with a hard disk. If you specify a hard disk drive for drive1 or drive2, DISKCOMP displays the error message:

    Invalid drive specification
    Specified drive does not exist
    or is non-removable

DISKCOMP messages

If all tracks on the two disks being compared are the same, DISKCOMP displays the message:

    Compare OK

If the tracks are not the same, DISKCOMP displays a message similar to:

    Compare error on
    side 1, track 2

When DISKCOMP completes the comparison, it displays message:

    Compare another diskette (Y/N)?

If you press Y, DISKCOMP prompts you to insert disks for the next comparison. If you press N, DISKCOMP stops the comparison.

DISKCOMP ignores a disk's volume number when it makes the comparison.

Omitting drive parameters

If you omit the drive2 parameter, DISKCOMP uses the current drive for drive2. If you omit both drive parameters, DISKCOMP uses the current drive for both. If the current drive is the same as drive1, DISKCOMP prompts you to swap disks as necessary.

Using one drive for the comparison

If you specify the same floppy disk drive for drive1 and drive2, DISKCOMP does a comparison by using one drive and prompts you to insert the disks as necessary. You might have to swap the disks more than once, depending on the capacity of the disks and the amount of available memory.

Comparing different types of disks

DISKCOMP cannot compare a single-sided disk with a double-sided disk or a high-density disk with a double-density disk. If the disk in drive1 is not of the same type as the disk in drive2, DISKCOMP displays the message:

    Drive types or diskette types not compatible

Using DISKCOMP with networks and redirected drives

DISKCOMP does not work on a network drive or on a drive created or affected by a SUBST command. If you attempt to use DISKCOMP with a network drive or a drive created by the SUBST command, DISKCOMP displays an error message.

Comparing an original disk with a copy

When you use DISKCOMP with a disk that you made with the COPY command, DISKCOMP may display a message similar to:

    Compare error on
    side 0, track 0

This type of error can occur even if the files on the disks are identical. Although the COPY command duplicates information, it doesn't necessarily place it in the same location on the destination disk. For more information about comparing individual files on two disks, see the FC command.

Different serial numbers

Since v4.0 two otherwise identical disks with different serial numbers are reported as "identical".


If your system has only one floppy disk drive, drive A, and you want to compare two disks, type:


DISKCOMP prompts you to insert each disk, as required.

v1.0 v1.05 v1.1 v1.11 v1.24 v1.25 v1.85 v2.0 v2.01 v2.05 v2.10 v2.11 v2.11R v2.12 v2.2 v2.25 v3.0 v3.20 v3.05 v3.1 v3.21 v3.25 v3.30 v3.3A v3.3R v3.3T v3.31 v3.40 v4.0 v4.01 v4.01A v5.0 v5.0A v5.00.02 v5.001A v5.01 v5.02 v6.0 v6.10 v6.2 v6.21 v6.22 v6.23
Windows NT
NT3.5 NT4 NT2000 NTXP NT2003