FC
Home >>
MS-DOS Reference >>
Command Categories >>
File and Disk Management >>
FC
Description
Compares two files or sets of files and displays differences between them.
Command Syntax
FC [/a] [/c] [/l] [/lbn] [/n] [/t] [/w] [/nnnn] file1
file2
or
FC [/b] file1 file2
-
/a displays only the first and last lines of each set of differences
-
/b performs a binary comparison and displays bytes as hexadecimal numbers.
This applies to EXE, COM, SYS, OBJ, LIB and BIN files automatically. Only
the /nnnn switch works with this option.
-
/c ignores case of characters (that is, "a" is the same as "A")
-
/l compares the files line by line (in ASCII mode).
-
/lbn sets the number of consecutive mismatches in the difference
report to the number of lines specified by the n parameter (the
default is 100 lines)
-
/n displays line numbers
-
/t treats tab characters as tab characters instead of eight spaces.
-
/w ignores leading spaces and tabs, and treats other spaces and tabs as
single spaces
-
/nnnn specifies the number of consecutive lines that must match
after a mismatch (the default is two)
Comments
FC replaces COMP for comparing files.
Printed from the NukeSoft MS-DOS Reference. Copyright
© 1995 - 2006 Marcus Houlden