Os9cmp – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual
Page 299

Using the PCBridge Software
Appendix D
D-21
Compare Binary Files
Syntax
os9cmp [<opts>] <path1> <path2>
Function
os9cmp
opens two files and performs a comparison of the binary values of
the corresponding data bytes of the files. If any differences are
encountered, the file offset (address), the hexadecimal value, and the
ASCII character for each byte are displayed.
The comparison ends when an end-of-file is encountered on either file. A
summary of the number of bytes compared and the number of differences
found is displayed.
Options
Option
Description
Ć?
Display the options, function, and command syntax of os9cmp
Ćb=<num>[k]
Assign <num>k of memory for os9cmp use. os9cmp uses a 4K memory size
by default
Ćs
Silent mode; stop the comparison when the first mismatch occurs and print an
error message
Examples
The following command uses an 8K buffer to compare
FILE1
with
FILE2
.
C>os9cmp file1 file2 -b=8k
Differences
(hex) (ascii)
byte #1 #2 #1 #2
======== == == == ==
00000019 72 6e r n
0000001a 73 61 s a
0000001b 74 6c t l
Bytes compared: 0000002f
Bytes different: 00000003
file1 is longer
The following command line compares
FILE1
with itself.
C>os9cmp file1 file1
Bytes compared: 0000002f
Bytes different: 00000000
os9cmp