rem This batch program works together with "PKZIP" and "PKUNZIP" to find 
rem the CRC codes of all the files in the current DOS directory. It makes
rem a temporary, compressed copy of everything in that one directory, and
rem then allows you to see and edit PKZIP's report on each seperate file
rem the new zip file. (Just cut off the header and footer, when it puts
rem you into the DOS Edit program, so that only the file info remains.)
rem We don't care about the compressed file, so that is automatically
rem deleted. What will remain is an ASCII text file called "TEMP-CRC.TXT"
rem that contains the lines of info from the PKZIP program, sorted on the
rem column of CRC's, so matching ones will be listed close to one another.
rem If the CRC codes are exactly the same, the two files are identical.
rem (Note that this program works on the assumption that you understand
rem the DOS operating command line interface, and that you have this
rem batch program and PKZIP where DOS can find them; preferably in a 
rem directory that your AUTOEXEC.COM searches via the PATH statement.)
rem
rem by Ward Shrake, 2001-ish
rem
rem
echo off
del crc-temp.txt
del temp-crc.*
del whatever.zip
rem
rem
rem
pkzip whatever.zip *.*
pkunzip -v whatever.zip >crc-temp.txt
del whatever.zip
rem
rem
rem
ed crc-temp.txt
sort /+47 crc-temp.txt >temp-crc.txt
del crc-temp.txt
rem
rem
rem
rem     see temp-crc.txt
cls
dir /on /w
