Check file difference windows

Windows 11 FC command to compare files

(Image credit: Mauro Huculak)

On Windows 11 (and 10), the File Compare (fc) is a command-line tool that comes part of the system, and it allows you to compare two similar files to determine how they changed over time. Usually, «fc» will be helpful for comparing simple text files, determining the changes made to a script, detecting if a file has been modified, and similar scenarios.

The tool can compare two similar files or the newest version against all the other files in the same location. Also, it includes options to examine the changes at the text level, or in Unicode, ASCII, or binary mode.

In this how-to guide, you will learn steps to use the tool to compare files with Command Prompt on Windows 11 as well as on Windows 10.

Recent updates

This guide has been updated to ensure the instructions are still accurate and reflect you can also use the tool on Windows 11.

How to compare files with the fc command on Windows 11

To compare files with the fc command tool, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to browse to the folder with the files you want to compare and press Enter: cd PATH\TO\FILES

In the command, update the path with the location of the folder with the files to compare. This example navigates to the Downloads folder: cd C:\Users\USERACCOUNT\Downloads

  1. Type the following command to compare two similar files and press Enter: fc filename1.txt filename2.txt

In the command, replace filename1.txt and filename2.txt for the name of the files you want to compare.

fc compare files command

(Image credit: Mauro Huculak)
  1. Type the following command to compare two similar files in ASCII mode and press Enter: fc /L filename1.txt filename2.txt
  2. Type the following command to compare two files displaying only the first line that is different and press Enter: fc /a filename1.txt filename2.txt

fc compare two files showing first line

(Image credit: Mauro Huculak)
  1. Type the following command to compare two files in Unicode mode and press Enter: fc /u filename1.txt filename2.txt

fc compare two files in Unicode mode

(Image credit: Mauro Huculak)
  1. Type the following command to compare two files in binary mode and press Enter: fc /b filename1.txt filename2.txt

fc compare two files in binary mode

(Image credit: Mauro Huculak)
  1. Type the following command to compare all the files (*.txt) in the same folder to the new file (filename2.txt) and press Enter: fc *.txt filename2.txt

fc compare multiple files

(Image credit: Mauro Huculak)
  1. Type the following command to compare two files in different locations and press Enter: fc DRIVE:\PATH\TO\filename1.txt DRIVE:\PATH\TO\filename2.txt

In the command, replace DRIVE for the storage location drive letter and \PATH\TO\filename1.txt and \PATH\TO\filename2.txt with the path and name of the files you want to compare.This example compares two files in different folders: fc C:\Users\USERACCOUNT\Downloads\filename1.txt C:\Users\USERACCOUNT\Downloads\new\filename2.txt

All the latest news, reviews, and guides for Windows and Xbox diehards.

fc compare two files in different location

(Image credit: Mauro Huculak)
  1. Confirm the output to see the difference between the files.
  • Quick tip: You can view the list of options and more examples using the fc /? command.

Once you complete the steps, you will be able to see the difference between two similar files.

While the tool allows you to compare files, remember that this is a basic tool meant to be used with text files and extensions like .exe, .com, .sys, .obj, .lib, or .bin. You may be able to compare files like those from Microsoft Office or images, but you can only compare them at the binary level.

More resources

For more in-depth insights, troubleshooting tips, and the latest updates on Windows 11 and 10, be sure to explore these resources:

  • Windows 11 on Windows Central — All you need to know
  • Windows 10 on Windows Central — All you need to know

Mauro Huculak has been a Windows How-To Expert contributor for WindowsCentral.com for nearly a decade and has over 15 years of experience writing comprehensive guides. He also has an IT background and has achieved different professional certifications from Microsoft, Cisco, VMware, and CompTIA. He has been recognized as a Microsoft MVP for many years.

There are times when you need to compare two files and check whether their content is different. In some situations, you could just open the two files and look through their contents, like when you want to compare two pictures or two text files. However, that’s a rather tedious task to perform, and you might miss small differences, like a slight change in tint on a photo, or a phrase in a text file. That’s why it is good to know a few methods to programmatically compare the contents of two files, using software instead of your senses. 🙂 Here are three ways in which you can do that, using PowerShell or third-party apps for Windows:

How to compare two files using PowerShell

Windows 10 doesn’t have a built-in tool for comparing two files. However, you can use PowerShell to do so. Start by opening PowerShell: a quick way to do it is to press the Win + X keys on your keyboard simultaneously, and then press I if you want to run PowerShell as a standard user, or A if you want to run it as an administrator.

Once you’ve opened PowerShell run the following command:

if((Get-FileHash «Path to the first file»).hash -eq (Get-FileHash «Path to the second file»).hash) {«The two compared files are identical»} else {«The two compared files are NOT identical»}

Of course, you should change «Path to the first file» and «Path to the second file» with the real paths to your files. For example, we wanted to compare two files called DigitalCitizen1.txt and DigitalCitizen2.txt, both found on our D: drive.

The two files that we wanted to compare by contents

The two files that we wanted to compare by contents

To compare their contents, we had to run this command:

if((Get-FileHash «D:DigitalCitizen1.txt»).hash -eq (Get-FileHash «D:DigitalCitizen2.txt»).hash) {«The two compared files are identical»} else {«The two compared files are NOT identical»}

Running the file compare command in PowerShell

Running the file compare command in PowerShell

If the content of the two files is the same, the output you get in PowerShell tells you that «The two compared files are identical.»

The output you get in PowerShell when the two files are the same

The output you get in PowerShell when the two files are the same

If the contents of the two files are different, the output you get in PowerShell tells you that «The two compared files are NOT identical.»

The output you get in PowerShell when the files are different

The output you get in PowerShell when the files are different

Although using PowerShell is both fast and fairly easy, some people do not like using command-line environments. Because of that, we’re also going to show you how to compare two files in Windows using third-party apps that offer graphical user interfaces.

How to compare two files using Total Commander

Total Commander is a shareware file manager that is available for all Windows versions. You can get it from its official website, here: Total Commander. Once you’ve installed and opened it, use its windows to navigate to the two files that you want to compare. In the left side of Total Commander, navigate to the first file, and on the right, navigate to the second file. Then, select the two files by clicking on them and then pressing the spacebar. When the files are selected, their name is colored in red, as you can see in the screenshot below.

Selecting the two files to compare, in Total Commander

Selecting the two files to compare, in Total Commander

Now open the Files options from Total Commander’s menu, on the top-left corner, and click on «Compare By Content.«

Asking Total Commander to Compare By Content the two files

Asking Total Commander to Compare By Content the two files

If the two files that you chose to compare are identical, Total Commander opens a small popup window in which it tells you that «The two files have the same content!».

The message you get from Total Commander when the two files are the same

The message you get from Total Commander when the two files are the same

If the contents of the two compared files differ, Total Commander opens a window in which it shows you the differences between the two files, highlighted in red.

The Compare contents shown by Total Commander when the two files are different

The Compare contents shown by Total Commander when the two files are different

Total Commander also gives you other options for checking the differences and editing the two files, but they are out of the scope of this tutorial, so we’re letting you discover them on your own.

How to compare two files using AptDiff

A freeware app that can help you compare files by contents is AptDiff. Although the app is not maintained anymore, it still works in all Windows versions from Windows 2000 and up, including Windows 10. You can get it from Softpedia.

After you install and open AptDiff, it immediately asks you to select the files that you want to compare. Enter the paths to the two files or use the «…» buttons to browse through your computer and select them.

Using AptDiff to choose the two files to be compared

Using AptDiff to choose the two files to be compared

Then choose whether you want to compare the two files as text files, or if you prefer to compare them on a binary level. You can choose any option, regardless of the type of files that you compare. However, know that once the contents of the files are compared, the app loads their contents in two separate panes and shows you the differences identified, if any. If you choose to «Compare as Text,» the two panes show the text contents and differences. Otherwise, if you choose to «Compare as Binary,» the contents of the two files are shown in hexadecimal code.

AptDiff shows the differences between the two compared files

AptDiff shows the differences between the two compared files

Just like Total Commander, AptDiff also lets you use additional tools for comparing and editing the contents of the two files.

What is your favorite way of comparing two files by content?

Now you know three easy ways of comparing two files by content in Windows. Which of them is your favorite? Do you prefer using commands in PowerShell, or would you rather install and use a third-party app that also has a visual interface? If you know other methods to compare files, let us know by leaving a comment in the section below.

Diff Checker

A desktop application that allows you to compare text differences between two files.

Informations

Now instead of using online tools you can use this application directly from your computer.

Overview

Diff Checker has been written using Electron, it’s available for Windows, MacOS and Linux.

You can download latest version from here.

Platform File
Windows diff-checker-web-setup-{VERSION}.exe
Mac* Diff-Checker-{VERSION}.dmg
Linux diff-checker-{VERSION}-i386.AppImage
diff-checker-{VERSION}-x86_64.AppImage

MacOS* installation:

Application doesn’t contain production sign so you will see notification that you want to run application from unidentified developer. There are two ways to run not signed apps:

Open Apple menu > System Preferences, click Security & Privacy, then click General tab

  1. Click the “Open Anyway” button. This button is available for about an hour after you try to open the app.
  2. Click the Lock icon in the bottom left of that window, make sure you have the option “Allow Applications Downloaded from: Anywhere” selected and click “OK”.

Features:

  • drag and drop files or text directly into textarea fields
  • remember window size and position
  • auto updates

Options

After you click on Diff items button, options box will appear. To show avaliable options just click on the Options text.

  • Show difference only — choose if you want to display only difference or whole diff (with not modified lines)
  • Format — choose between two layouts (Side by Side or Inline)

Side by side format


Inline format


Side by side format with difference only


Inline format with difference only


Todo

  • mac release
  • linux release
  • app hangs on large files
  • layout improvements, better icon
  • save last used options

If you have any idea, just let me know.

Updating

Application have built in auto updater so you don’t need to do anything, if new version will be available it will inform you.

Downloading update


Update notification

Versioning

For the versions available, see the tags or releases

Authors

  • Tomasz Rembacz

License

This project is licensed under the MIT License — see the LICENSE file for details

Acknowledgments

  • Ace and modified version of jsdifflib has been used.

Сравнение — это действие по оценке файлов путем поиска релевантных, сопоставимых характеристик каждого элемента, а затем определения сходства характеристик друг с другом. Инструменты проверки различий используются по многим причинам, когда кто-то хочет сравнить текстовые файлы, а другой хочет сравнить файлы , визуальное сравнение обычно лучше всего. Это дает вам возможность увидеть, какие элементы изменены, если файлы должны быть объединены, чтобы создать один, содержащий все различия — GroupDocs.Comparison является лучшим.

Если вам нужно найти сходства в ваших документах , которые вы не можете сравнить вручную, потому что файлы очень большие, и вы хотите увидеть все мельчайшие различия, то Сравнение — это то, что вам нужно. Этот онлайн-инструмент проверки различий сообщит вам обо всех изменениях между файлами , поскольку средство проверки различий сравнивает все элементы ваших файлов и отображает результат через несколько секунд.

GroupDocs.Comparison – это мощное программное обеспечение, которое позволяет вам увидеть разницу между файлами , выделяя изменения красным (удаленные) и зеленым (добавленные) цветами. Кроме того, наша программа проверки различий может обнаруживать даже изменения стилей в вашем файле и выделять его ярко-желтым цветом. Сравнивайте свои документы бесплатно на любой ОС и платформе, используя только браузер. Все вычислительные операции выполняются на нашей стороне.

Посмотрите наше видео

Here is a list of best free folder compare software for Windows. These software are used to check whether two folders are similar or not. Using it you can also verify the differences between source and target folders. These software basically compare contents or files contained by folders. They check various parameters like name, size, date, time, file extension, etc., to figure out the differences between the folders. These folder compare software also provide their own file explorer to find and add folders to them. Before performing the comparison, you can also apply filters (date, new, old, size, name, etc.) to get the desired comparison results.

Almost all of these software provide split interface to make the task of comparing folders and files easy. Feature to compare files is another useful trait which is available in some of these software. Through file comparing feature, you can easily compare text of two documents line by line. All the differences or similarities are marked in various color schemes which really help during text document comparison. Various color schemes are also used to highlight the common or unique content between folders.

Various handy features like synchronization, move or copy content of source to folder destination or vice versa, etc., are also available in few software. Plus, some of them also let you save comparison result in few formats such as PDF, TEXT, etc.

My favorite folder compare software for Windows:

BS Folder Compare is my favorite because its simple interface makes the task of folder comparison really easy. In its comparison result, you can view all identical and non-identical contents of folders side by side. It also has a selection mode to include or exclude folders content according to their file extension, which is another handy feature of it.

Meld is another good folder compare software and its main advantage is its ability to compare three files, folders, and directories with each other at a time. It also provides various filters to filter out undesired results.

You can also check out some best free Folder Sync, Folder Hider, and Delete Empty Folders software for Windows.

BS Folder Compare

BS Folder Compare is a free folder compare software for Windows. It is used to examine the identicality and differences between the two folders. Through its simple interface, you can easily add folders on Folder 1 and Folder 2 section. After that, you need to click on Process Button to start comparison. A complete report consisting of file names contained by the folders will open up on default browser. On the report, you can view all non-identical files of Folder 1 on the left side, while non-identical files of Folder 2 on the right side. Even if a single file is not matched between added folders, this software declares those folders as non-identical.

The interface of this software also provides a comparison report. This report contains all identical as well as non-identical files between added folders. This report is more informative than browser report because this report provides identical files as well while browser report does not.

Selection mode is another good feature of this software. It is used to include or exclude the files based on their file extension. You can manually write the file extension which you want or don’t want in folder comparison result. All of these features make it one of the best free software to compare folders.

Meld

Meld is an open source file compare software for Windows. The main feature of this software is its three-way comparison feature. This feature lets you compare three folders, directories, and files with each other at a time. After launch, it asks you to add files, folders, or directories that you want to compare. Further, you can also apply filters like Same (to show only identical content between folders), New (to only view the newer files of folders), Modified (to show similar files that are slight modified), etc. You can choose single as well as multiple filters at a time to get the desired results. Split display and color scheme to highlight similar or unique files also make folder comparison easy.

Its file comparison feature is also useful as it lets you compare text of two or three files side by side. All the differences between the text of tested files are highlighted in green color and remaining common text remains the same. You can also setup synchronizing points for texts, to quickly make certain part of text file similar in both files. Here, you can also compare multiple files and folders simultaneously by using its tabular interface. Apart from various features, I also liked its polished and premium looking interface.

Compare Advance

Compare Advance is another free folder compare software for Windows. You can also use it to create backup of data as well as for synchronizing data between different folders. Using its internal file explorer, you can add folders that you want to compare. After that, just click on compare button to start comparison.

As comparison result, you get various Tabs named, Overview, Folder 1, Folder 2, Same, and Different. Folder 1 and Folder 2 tabs provide all the files contained in these two folders, respectively. Same tab shows files which are identical between folders, whereas Different tab shows all non-identical files. However, Overview tab provides all the files of both folders. Various information namely, file name, size, and creation date of files are also provided in these tabs.

In this folder comparison software, you can also view various important statistics such as count of common files, size of common files, size of total number of files in folder 1 or 2, count and size of non-identical files, etc. Some other options to open files, copy files to another folder, and deletion of files are also available.

Complete comparison report or some selected part of that report can be saved in HTML or Text format.

DSH Directory Comparator

DSH Directory Comparator is yet another directory and folder compare software for Windows. It uses split interface to compare two directories or folders side by side. Process of adding folders is a bit tricky here as its file explorer only shows system drives. It makes the task of finding the right folders lengthy. Still, it accomplishes the task of comparing folders quickly. All common files or contents between two folders are shown side by side, to help you identify the common files quickly. Its color scheme for the comparison of content of different folders also help. You can also compare folders according to date, time, smaller file size, larger file size, etc.

This folder comparison software is also capable to compare MP3 files, which is a unique feature as not many folder compare software have this feature. It also has a synchronize feature that synchronizes two folders by copying the missing files and overwriting the same older files with the newer ones. Basically, it makes two folders identical. You can also view, copy, move, or delete the content of folders. After comparison, you can save result in .dss and PDF formats.

Note: During testing, its feature to compare files did not seem to work correctly.

DiffMerge

DiffMerge is a free file merger and file comparison software for Windows. It also has a feature to compare two folders with each other. You can easily add folders to this software by going to File Menu. Here, you don’t have to press any start button to start the comparison process, instead go to its view section to view result. View section contains various options such as show equal, show equivalent, show peerless, show folders, show errors, etc. If you want to view common files between added folders, then you can choose show equal option. Show equivalent shows those files that have minor differences such as blank spaces. Using Show Peerless option, you can view those files which are present in only one of the two folders.

In this software, you can also compare the content of different documents side by side using File Diff feature. This feature automatically highlights all the differences between two text documents, which I find really useful.

WinMerge

WinMerge is a free software for comparing and merging files and folders. This software provides a simple folder comparing feature, using which you can compare two folders at a time. You can also apply filters according to file extensions before file comparison process. Most filters provided here are related to various programming language like ASP.NET, visual C#, etc. After comparison, you get a list of all files contained in both folders. Files which are identical in both folders are described as “Binary files are identical”; files which are in only one of the folders are termed as “Left only” or “Right only”. The available result can also be saved as a project file for later use.

Its feature to compare files and documents is also good as it highlights all the differences between the text of two files. Plus, it also lets you edit both documents that you are comparing. Merging is another important feature and by using it, you can easily merge two folders into one.

Code Compare

Code Compare is another free files and folder compare software for Windows. This software is mainly used by programmers to compare programming codes of two files. But, you can also compare folders with it. It has an option named new folder comparison which is used to add and compare folders. A split interface is provided by this software to add one folder on left side and another folder at the right side of interface. After the test, you can view all the common content of both folders at the top of the list. Non-identical content of left side folder is marked in red color, while the content of right side folder is marked as green. You can also access and view all the contents of folders directly from the Result list.

This software also has many other handy features like synchronize folders, find and replace feature for documents, hide identical files, etc. The result of folder comparison can be exported as a project, while file comparison result can be saved in various document formats.

Note: Some features of this software like compare line by line, difference explorer, etc., are locked in this free version. To unlock all the feature, you have to buy its pro version.

DirDiff

DirDiff is a free and portable folder compare software for Windows. Through it, you can compare directories, folders, or even individual files with each other.

In DirDiff, you can add and compare two folders, at a time. On its interface, you can view contents contained by both folders in a single list. In this list, unique contents of both folders are highlighted in different colors (red and green) and common content remains white. Files and documents contained by folders can also be modified directly from this software.

Through its file comparison feature, you can also compare two files. Instead of showing the text of files side by side, it actually superimposes the text of one file to other. All the common text remains the same. And, unique content of one file is marked in green and other’s in red, so you can quickly identify the differences.

It also has some additional features that you may find useful, like option to view the structure of XML document, find in feature to find any particular text, floating drag handle icon to quickly add documents or files for comparison, etc.

DiffDaff

DiffDaff is another alternative for a free software to compare folders. It can also be used to compare files, and web pages. Using it, you can compare two files and folders at a time. You can also compare folders that have sub folders in it. Text can also be compared using this software, but special characters used in word and excel file formats are not supported by it.

To compare folders, you have to add two folders in it. Now, choose one of the output file format named HTML and HTA. HTML results opens up in a web browser, whereas HTA result open in different window of DiffDaff. From the results, you can easily identify common and unique contents because of the use of highlighting schemes (green and red). Comparison result also incorporates partitioned interface to split the content of folders. After comparison, you can save this result in HTML or PDF format.

FreeCommander

FreeCommander is an advanced folder compare software for Windows. It is also used as an alternative of Windows file explorer. Its main feature is its dual panel file explorer window, through which you can open and compare files and folders of the system. Various features and it’s beautifully designed interface make any task easy.

To Compare Folders in FreeCommander:

To compare folders, just select any two target folders through its dual panel file explorer. On the toolbar, you can view various sections like File, Folders, View, etc. You have to go to Folders menu and click on Compare option or simply press Alt + v to start comparison process. In output, you get only unique files of both folders on their respective sides of the panel. The only limitation of this software is that it does not show common contents between folders.

It also has various other handy features like Synchronize (to make content of two folders identical ), Dedicated file comparison option (to compare the text of two files side by side ), Filters (to filter out the undesired result according to the selected parameters), size of folders (to view the size folders files), etc.

MOBZync

MOBZync is yet another free folder compare software for Windows. It is small and easy to use software, but has all essential features to compare folders. Mainly it provides three features named folder comparison, synchronization, and copy. It also provides split interface so that you can compare the content of each folder side by side. To further help you identify the content, it provides bullets of different colors such as Black (unchanged content), Green (Newer Content), Pink (added content), Red (Older content). These bullets simplify the identification of similar and different content between folders. It also shows the total number of files in each folder.

Its synchronize feature simply copies the files in both directions to make content of both folders similar. The copy feature is pretty advanced as you can copy changed, unchanged, new, and older content from one folder to other. Plus, transfer content from left folder to right or vice versa is also possible.

The only limitation of this software is that you cannot view the folder’s content directly from this software.

File Synchronize

File Synchronizer is basically a free file synchronizing software for Windows. It is a very simple software with limited features. Interface of this software is divided into two parts which are used to compare the content of the folders side by side. You can add two folders at a time for comparison. One folder is added to the left side, while other one is added to right side of interface. After the comparison, it provides all the non-identical content of each folder on their respective sides of interface.

But, one major problem with this software is that it does not show the common content between the added folders. Still, it does show the number of common content. Apart from this, some other useful features like synchronize, clone, etc., are available in this software.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Комбинация клавиш для запуска windows на mac
  • Как освободить память на компьютере windows 7 от ненужных файлов программы
  • Не видит диск д на виндовс 10 после переустановки windows
  • Docker удалить все контейнеры windows
  • Как установить имя пользователя в windows 10