diskcomp
Compares the contents of two floppy disks. Windows commands reference
On Windows
Windows
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 specificationSpecified drive does not existor is nonremovableCompare OKCompare error onside 1, track 2Compare another diskette (Y/N)?Drive types or diskette types not compatibleInvalid drive specificationCompare error onside 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:IdentifyTo 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.