How-To

How to Compare Two Folders in Windows 11

how to compare two folders in windows 11

Learn how to compare two folders in Windows 11 using this guide.

It’s always a good idea to keep a backup of your important files and folders on your computer. Things do go wrong, and if you don’t have a backup, you could potentially lose those files forever. Creating a backup is simple to do and can give you a huge amount of peace of mind.

How can you tell if your backup is up-to-date, however? You may not be sure how many changes you’ve made since you last made a backup. If that’s the case, it would be useful to be able to compare folders to see if they’re the same or if there are additional files in one of them.

If you want to check if two folders are exactly the same or now, then here’s how to compare two folders in Windows 11.

How to Compare Two Folders Using Properties

Windows allows you to open a window that contains information about the properties of a folder. Although you can’t do a direct comparison in a Properties window, it is possible to open two of these windows side-by-side. This allows you to quickly compare some key information about the folders, such as the size of the folder and the number of files it contains.

Although this information can’t tell you for certain that the folders are the same, it can be an easy way to determine if they are different.

To compare folders using Properties in Windows 11:

  1. Open File Explorer.
  2. Locate the first folder that you want to compare.
  3. Right-click on the folder and select Properties.
    windows 11 folder properties
  4. You’ll see information such as the location, size, and number of files in your selected folder.
    windows 11 folder info
  5. Move this window to one side and navigate to the second folder that you want to compare in File Explorer.
  6. Right-click on the folder and select Properties.
  7. Drag the two Properties windows so that they are side-by-side.
    windows 11 properties windows side by side
  8. You can now compare the details of both windows. In this case, the size and the number of files in the folder are different, so we can say for certain that these are not duplicates of the same folder.

How to Compare Two Folders Using Command Prompt

Whilst the method above is a simple way to determine if two folders are different, you may want a little more information on exactly what is different about them. If this is the case, then you can use Command Prompt to find differences between the files within your folders.

This is very useful for ensuring that, if you have folders that are near duplicates, you keep the version that is more up to date. This method will only compare the files within the main folder, however; it won’t look at files within subfolders.

To compare two folders using Command Prompt:

  1. Click the Search icon in the toolbar.
    windows 11 search icon
  2. Type command prompt and select the Command Prompt app in the results.
    windows 11 search for cmd
  3. Type robocopy followed by a space.
    windows 11 robocopy
  4. In File Explorer right-click the first folder you want to compare and select Copy as Path.
    windows 11 copy path
  5. Return to the Command Prompt window and paste the path to your first folder, and then type another space.
    windows 11 pasted path
  6. Copy the path to the second folder by using the method from step 4.
  7. Return to the Command Prompt window and paste the path, then type another space.
    windows 11 pasted path
  8. Type /L /NJH /NJS /NP /NS and press Enter.
    windows 11 full robocopy command
  9. You’ll see a list of differences between the two folders.
    windows 11 robocopy result
  10. A file marked *EXTRA File appears in the second folder, but not the first.
  11. A file marked New File appears in the first folder, but not the second.
  12. Files marked Older appear in both folders, but the file in the first folder has a creation date earlier than the same file in the second folder.
  13. Files marked Newer appear in both folders, but the file in the first folder has a more recent creation date than the same file in the second folder.

How to Compare Folders Using PowerShell

You can also compare your two folders using PowerShell. As with the Command Prompt method, this will provide you with information about the files that appear in one folder but not the other.

However, you won’t see any information which version of files that appear in both folders is older. If that information is important to you, then you should use the method above instead. Unlike the method above, using PowerShell does allow you to compare files within subfolders as well as the main folder.

To compare folders using PowerShell:

  1. Click the Search icon.
    windows 11 search icon
  2. Type powershell and select the PowerShell app from the results.
    windows 11 search powershell
  3. Type $fso = Get-ChildItem -Recurse -path followed by a space.
    windows 11 powershell fso
  4. In File Explorer right-click on the first folder you want to compare and select Copy as Path.
    windows 11 copy path
  5. Return to PowerShell and paste the file path and then press Enter.
    windows 11 powershell pasted path
  6. Type $fsoBU = Get-ChildItem -Recurse -path followed by a space.
    windows 11 powershell fsobu
  7. Copy the path to your second folder using the method in step 4.
  8. Return to PowerShell and paste the folder path, then press Enter.
    windows 11 powershell pasted path
  9. Type Compare-Object -ReferenceObject $fso -DifferenceObject $fsoBU and press Enter.
    windows 11 compare command
  10. You’ll see a list of differences between the two folders.
    windows 11 powershell result
  11. If the SideIndicator is pointing left, the file only appears in the first folder.
    windows 11 powershell left arrow
  12. If the SideIndicator is pointing right, the file only appears in the second folder.
    windows 11 powershell right arrow

How to Compare Folders Using WinMerge

A simple way to compare two folders in Windows 11 is to use a third-party app called WinMerge. This app lets you quickly compare folders using a simple GUI.

You can also install a portable version of the app, so you don’t have to install it on your computer.

To compare folders using WinMerge:

  1. Download WinMerge from the WinMerge website.
  2. Unzip the folder on your computer.
  3. Run WinMergeU.exe from the extracted folder.
  4. Click the Open icon.
    windows 11 winmerge open
  5. Click the Browse button under 1st File or Folder and navigate to the first folder you want to compare.
    windows 11 winmerge browse button
  6. Open the folder and click Open.
    windows 11 winmerge open folder
  7. Click the Browse button under 2nd File or Folder and navigate to the second folder you want to compare.
    windows 11 winmerge browse button
  8. Open the folder and click Open.
    windows 11 winmerge open folder
  9. At the bottom of the window, click the Compare button.
    windows 11 winmerge compare button
  10. You will see a list of results indicating the similarities and differences between your two folders.
    windows 11 winmerge results
  11. The folders are listed above the results, so you can see which folder Right and Left are referring to.
  12. For some file types, you can also double-click the file name to compare the contents of the files.

Learn More About Windows 11

Knowing how to compare two folders in Windows 11 allows to you check if two folders are exactly the same. If they’re not, you can quickly and easily see the differences between them.

There are plenty of other useful Windows 11 tips that it’s worth knowing. If you want your desktop to look a little more modern, you can learn how to make the taskbar transparent in Windows 11. If you want to run a different OS but don’t want to create a dual boot system, you can learn how to create a virtual machine in Windows 11.

And if things are going wrong, you can learn how to fix a black screen in Windows 11.

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

 

To Top