|
FC
Compares two files or sets of files, and displays the
differences between them.
Syntax
FC /B pathname1 pathname2
FC [options] pathname1 pathname2
Key
/B : Perform a binary comparison.
options
/C : Ignores the case of letters.
/A : Displays only first and last lines for each set of
differences.
/U : Compares files as Unicode text files.
/L : Compares files as ASCII text. (default)
/N : Displays the line numbers during an ASCII
comparison.
/LBn: Limit the number of lines that will be read, "n"
sets a maximum number of mismatches after which the
File Comparison will abort (resync failed)
When FC aborts (resync failed) then "n" number of
mismatches will be shown.
/nnnn : Specify a number of consecutive lines that must
match after a mismatch.
This can be used to prevent the display of the
two files from getting too out of sync.
/T : Prevents fc from converting tabs to spaces.
/W : Compress white space (tabs and spaces) for comparison.
You can use wildcards (that is, * and ?) in pathname1 and
pathname2.
Examples
To make an ASCII comparison of two text files that are named
April.rpt and Sales.rpt and display the results in
abbreviated format, type:
fc /a april.rpt sales.rpt
To make a binary comparison of two batch files named
Profits.bat and Earnings.bat, type:
fc /b profits.bat earnings.bat
Cmd Commands
|