CmdID

CmdID / Commands

diskcomp

Compares the contents of two floppy disks. Windows commands reference

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

Compares the contents of two floppy disks. If used without parameters, diskcomp uses the current drive to compare both disks.

diskcomp [<drive1>: [<drive2>:]]
Invalid drive specification
Specified drive does not exist
or is nonremovable
Compare OK
Compare error on
side 1, track 2
Compare another diskette (Y/N)?
Drive types or diskette types not compatible
Invalid drive specification
Compare error on
side 0, track 0

If your computer has only one floppy disk drive (for example, drive A), and you want to compare two disks, type

diskcomp a: a:Identify

To illustrates how to process a diskcomp exit code in a batch program that uses the ERRORLEVEL environment variable on the if command line

rem Checkout.bat compares the disks in drive A and B echo off diskcomp a: b: if errorlevel 4 goto ini_error if errorlevel 3 goto hard_error if errorlevel 1 goto no_compare if errorlevel 0 goto compare_ok :ini_error echo ERROR: Insufficient memory or command invalid goto exit :hard_error echo ERROR: An irrecoverable error occurred goto exit :break echo You just pressed CTRL+C to stop the comparison goto exit :no_compare echo Disks are not the same goto exit :compare_ok echo The comparison was successful; the disks are the same goto exit :exitIdentify
<drive1>Specifies the drive containing one of the floppy disks.
/?Displays help at the command prompt.