Site hosted by Angelfire.com: Build your free website today!

MS-DOS External Commands

The FC Command

Description:

Compares two files or sets of files and displays the differences betweeN them.

Command Syntax:

FC [/A] [/C] [/L] [/LBn] [/N] [/T] [/W] [/nnnn] [drive1:][path1]filename1 [drive2:][path2]filename2
FC /B [drive1:][path1]filename1 [drive2:][path2]filename2

Explanation of Syntax:

[/A] displays only first and last lines for each set of differences.
[/B] performs a binary comparison.
[/C] disregards the case of letters.
[/L] compares files as ASCII text.
[/LBn] sets the maximum consecutive mismatches to the specified number of lines.
[/N] displays the line numbers on an ASCII comparison.
[/T] does not expand tabs to spaces.
[/W] compresses white space (tabs and spaces) for comparison.
[/nnnn] specifies the number of consecutive lines that must match after a mismatch.

Command Use:

This command can be used at the command prompt and in batch files.