|
COMP
Compares the contents of two files or sets of files byte by byte.
Syntax
COMP [pathname1] [pathname2] [/D] [/A] [/L] [/N=number] [/C]
Key
pathname1 The path and filename of the first file(s)
pathname2 The path and filename of the second file(s)
/D Display differences in decimal format. (default)
/A Display differences in ASCII characters.
/L Display line numbers for differences.
/N=number Compare only the first X number of lines in the file.
/C do a case insensitive string comparison
When comp compares the files, it displays their locations
and file names. Used without parameters, comp prompts you to
enter the files to compare.
To compare sets of files, use wildcards in pathname1 and
pathname2 parameters.
Examples
To compare the contents of the directory C:\Reports with the
backup directory \\Backup\Reports\May, type:
comp c:\reports \\backup\reports\may
Cmd Commands
|