Comp
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, in the same
directory or in different directories. As comp compares the files, it displays their locations and filenames.
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 wildcards (* 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 wildcards (* 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.
See Also
Diskcomp
Fc
More Information About Comp
Comp--Notes
Comp--Examples