Index | Syntax | Notes  



FC--Examples

Suppose you want to make an ASCII comparison of two text files that are named MONTHLY.RPT and SALES.RPT, and you want to display the results in abbreviated format. To make this comparison, type the following command: fc /a monthly.rpt sales.rpt To make a binary comparison of two batch files named PROFITS.BAT and EARNINGS.BAT, type the following command: fc /b profits.bat earnings.bat The results of this command will be similar to the following: 00000002: 72 43 00000004: 65 3A 0000000E: 56 92 00000012: 6D 5C 00000013: 0D 7C 00000014: 0D 0A 00000015: 0A 0D 0000001E: 43 7A 0000001F: 09 0A 00000022: 72 44 ... ... ... 000005E0: 00 61 000005E1: 00 73 000005E2: 00 73 000005E3: 00 69 000005E4: 00 67 000005E5: 00 6E 000005E6: 00 6D 000005E7: 00 65 000005E8: 00 6E FC: EARNINGS.BAT longer than PROFITS.BAT If the PROFITS.BAT and EARNINGS.BAT files were identical, FC would display the following message: FC: no differences encountered To compare every .BAT file in the current directory with the file NEW.BAT, type the following command: fc *.bat new.bat To compare the file NEW.BAT on drive C with the file NEW.BAT on drive D, type the following command. fc c:new.bat d:*.bat To compare each batch file in the root directory on drive C to the file with the same name in the root directory on drive D, type the following command: fc c:\*.bat d:\*.bat
-Top- | Syntax | Notes