Fc Command In Windows Server 2008

This article explains the Fc command in Windows Server 2008 operating system and also explains its syntax.
  • 1770

Introduction

Fc command is used to compare two files against each other. When the comparison is completed Fc will return lines that differ between the files, if no lines differ user get a message indicating no differences encountered. Syntax for Fc command is given below.

Syntax

fc /a [/c] [/l] [/lb<N>] [/n] [/off[line]] [/t] [/u] [/w] [/<NNNN>] [<Drive1>:] [<Path1>]<FileName1> [<Drive2>:] [<Path2>]<FileName2>

fc /b [<Drive1>:] [<Path1>]<FileName> [<Drive2>:] [<Path2>]<FileName2>

Parameters For Fc

Parameter Description
/a Abbreviates the output of an ASCII comparison.
/b Compares the two files in binary mode.
/c Ignores the letter case.
/l Compares the files in ASCII mode.
/lb<N> Sets the number of lines for the internal line buffer to N.
/n Displays the line numbers during an ASCII comparison.
/off[line] Does not skip files that have the offline attribute set.
/t Prevents Fc from converting tabs to spaces.
/u Compares files as Unicode text files.
/<NNNN> Defines the number of consecutive lines that must match following a mismatch.
[<Drive1>:][<Path1>]<FileName1> Defines the location and name of the first file or set of files to compare.
[<Drive2>:][<Path2>]<FileName2> Defines the location and name of the second file or set of files to compare.
/w Compresses white space during the comparison.
/? Shows help at the command prompt.

Ask Your Question

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.