|
Compares the contents of two files or sets of files byte by byte. Comp can compare files on the same drive or on different drives,
and in the same directory or in different directories. As comp
compares the files, it displays their locations and file names. comp [data1] [data2] [/d] [/a] [/l]
[/n=number] [/c] Parameters data1 Specifies the location and name of the first file or set of files you want
to compare. You can use wildcard characters (* and ?) to specify multiple
files. data2 Specifies the location and name of the second file or set of files you
want to compare. You can use wildcard characters (* and ?) to specify
multiple files. /d Displays differences in decimal format. (The default format is
hexadecimal.) /a Displays differences as characters. /l Displays the number of the line on which a difference occurs, instead of
displaying the byte offset. /n=number Compares the first number of lines of both files, even if the files
are different sizes. /c Performs a comparison that is not case-sensitive. |