tldr/pages/windows/fc.md

34 lines
786 B
Markdown
Raw Normal View History

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.
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/fc>.
2019-01-28 18:38:53 +00:00
- Compare 2 specified files:
`fc {{path\to\file1}} {{path\to\file2}}`
2019-01-28 18:38:53 +00:00
- Perform a case-insensitive comparison:
`fc /c {{path\to\file1}} {{path\to\file2}}`
2019-01-28 18:38:53 +00:00
- Compare files as Unicode text:
`fc /u {{path\to\file1}} {{path\to\file2}}`
2019-01-28 18:38:53 +00:00
- Compare files as ASCII text:
`fc /l {{path\to\file1}} {{path\to\file2}}`
2019-01-28 18:38:53 +00:00
- Compare files as binary:
`fc /b {{path\to\file1}} {{path\to\file2}}`
2019-01-28 18:38:53 +00:00
- Disable tab-to-space expansion:
`fc /t {{path\to\file1}} {{path\to\file2}}`
2019-01-28 18:38:53 +00:00
- Compress whitespace (tabs and spaces) for comparisons:
`fc /w {{path\to\file1}} {{path\to\file2}}`