fc

比較兩個檔案或一組檔案間的差異。 以萬用字元 (*) 比較一組檔案。 更多資訊:https://learn.microsoft.com/windows-server/administration/windows-commands/fc.

  • 比較兩個指定檔案:

fc 檔案/完整/路徑1 檔案/完整/路徑2

  • 比較檔案且忽略大小寫差異:

fc /c 檔案/完整/路徑1 檔案/完整/路徑2

  • 以 Unicode 文字檔方式比較檔案:

fc /u 檔案/完整/路徑1 檔案/完整/路徑2

  • 以 ASCII 文字形式比較檔案:

fc /l 檔案/完整/路徑1 檔案/完整/路徑2

  • 以二進位方式比較檔案:

fc /b 檔案/完整/路徑1 檔案/完整/路徑2

  • 禁止將定位字元 (tab) 展開成空格:

fc /t 檔案/完整/路徑1 檔案/完整/路徑2

  • 壓縮空白字元(定位字元與空格)後,再進行比較:

fc /w 檔案/完整/路徑1 檔案/完整/路徑2