2019-01-28 18:38:53 +00:00
|
|
|
# fc
|
|
|
|
|
|
|
|
> Compare the differences between two files or sets of files.
|
|
|
|
> Use wildcards (*) to compare sets of files.
|
2022-10-04 16:06:23 +01:00
|
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/fc>.
|
2019-01-28 18:38:53 +00:00
|
|
|
|
|
|
|
- Compare 2 specified files:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`fc {{path\to\file1}} {{path\to\file2}}`
|
2019-01-28 18:38:53 +00:00
|
|
|
|
|
|
|
- Perform a case-insensitive comparison:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`fc /c {{path\to\file1}} {{path\to\file2}}`
|
2019-01-28 18:38:53 +00:00
|
|
|
|
|
|
|
- Compare files as Unicode text:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`fc /u {{path\to\file1}} {{path\to\file2}}`
|
2019-01-28 18:38:53 +00:00
|
|
|
|
|
|
|
- Compare files as ASCII text:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`fc /l {{path\to\file1}} {{path\to\file2}}`
|
2019-01-28 18:38:53 +00:00
|
|
|
|
|
|
|
- Compare files as binary:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`fc /b {{path\to\file1}} {{path\to\file2}}`
|
2019-01-28 18:38:53 +00:00
|
|
|
|
|
|
|
- Disable tab-to-space expansion:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`fc /t {{path\to\file1}} {{path\to\file2}}`
|
2019-01-28 18:38:53 +00:00
|
|
|
|
|
|
|
- Compress whitespace (tabs and spaces) for comparisons:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`fc /w {{path\to\file1}} {{path\to\file2}}`
|