home *** CD-ROM | disk | FTP | other *** search
-
- COMPARE v. 1.0 -- Perform bytewise comparison of two files.
- Copyright (c) 1992 DeurAble Software.
-
- FUNCTION:
- As indicated above, COMPARE checks two user-specified files for internal
- differences. It's similar to DOS's COMP command, but does not stop after ten
- differences are found. It also doesn't support the command line parameters
- that COMP does, primarily because I didn't need them for my application.
-
- USAGE:
- COMPARE <file1> <file2>
-
- Full file names and extensions are required.
-
- The two files need not be the same length; if they differ in length,
- COMPARE stops checking after reaching the end of the shortest file.
-
- If fewer than two file names are given, or either file cannot be opened,
- an error message is displayed.
-
- OUTPUT:
- COMPARE's output is sent to the monitor; it can be routed to a third
- file using the DOS ">" director command (e.g., COMPARE IN1.DAT IN2.DAT >OUT).
- The listing shows the names of files being compared, and the nature and
- location of each detected difference. A sample output is below:
-
- Comparing contents of files IN1.DAT and IN2.DAT . . .
- Byte at offset 3261 (0CBD) 00 --> 02
- Byte at offset 3264 (0CC0) 09 --> FF
- Byte at offset 3265 (0CC1) 04 --> 00
- Byte at offset 3266 (0CC2) 0A --> 1F
- Byte at offset 3267 (0CC3) 04 --> 00
- Byte at offset 3268 (0CC4) 04 --> 00
- Byte at offset 3269 (0CC5) 08 --> 03
- ^|^^ ^|^^ ^| ^|
- | | | +-- Value of byte in File2 (Hex)
- | | +--------- Value of byte in File1 (Hex)
- | +------------------ Location of byte, in Hex
- +------------------------ Location of byte, in Decimal
-
- DISCLAIMER:
- While this program SHOULDN'T do any harm to any disk or system, I make
- no guarantee of its safety or suitability for your task. It opens the input
- files for reading only, so should be incapable of writing to them. It does
- not do much input buffering, though, so you will see quite a bit of file
- access, particularly on large files. If you use a Ramdisk, it might ease your
- mind to copy the input files there before running COMPARE on them.
-
- DISTRIBUTION:
- This program is released as Freeware. Use it, copy it, give it away as
- a birthday gift. Just don't alter it. If you circulate it, please bundle it
- with this document. Any comments or suggestions can be left for Dwight Deur
- in the RIME Shareware conference.