If you’re synchronizing directories or backing up data, it’s a good idea to double-check that the copy you’ve made is actually identical to the original. It is possible for issues to occur where data doesn’t copy across perfectly, or some data doesn’t copy across at all.
If this sort of copy failure happens to an important document, and you don’t notice, you could end up with data loss. WinMerge is a tool that allows you to compare the contents of two directories. You can see if there are any missing files or if any of the backed-up files are different from the originals. This guide will walk you through installing and using WinMerge to compare the files in two folders.
You can install WinMerge for free from their website here. Just click the green “Download Now!” button in the top right corner to download it from SourceForge. Once the installer is downloaded, double-click it to start the installation wizard.
The first page of the installer is the licence agreement, click “Next” to agree and continue. The second page allows you to configure which features to install. By default, all extensions are enabled and there’s no real reason to turn them off – leave these options as they are. If you want to install an extra language pack, you can select one or more of the many options in the language list at the bottom.
Once you’ve selected the features you want, click “Next” to continue. The next page covers additional tasks. Here, there are checkboxes to enable File Explorer context menu integration, which allows you to launch WinMerge from the right-click menu File Explorer. Other options include creating a desktop shortcut and adding WinMerge to your system path, which you can leave disabled. Once you’ve selected which features you want to enable, click “Next” to continue.
The final page just shows what options you’ve selected, so double-check them, then hit “Install” to begin the installation process. Once the installation has completed, you’ll see a short message from the developers, click “Next” to skip it, then click “Finish” to close the installer and launch WinMerge.
Once WinMerge is open, press the Control+O hotkey combo to open a new comparison. To select a folder, click “Browse…” on the far right just under the “1st File or Folder” bar. Use the browse feature to select a folder that you want to compare.
Within the browse window, you need to enter the folder you want to compare, then click “Open”. If you only select but don’t enter the folder you want to compare, the browse window will enter the folder for you. When you’ve selected the first folder, repeat the process for the second folder below it. Once you’ve selected both folders that you want to compare, ensure that both “Read-only” checkboxes are ticked. You also need to make sure that the “Folder Filter” is set to the default “*.*”, to compare all files. Once you’ve completed setting up the comparison, click “Compare”.
With large folders containing a lot of files and subdirectories, the comparison process may take a while to complete. Once it has completed, you’ll see a list of all the files in the folders. By default, the results table lists: the filename, the path of a subdirectory, the result of the comparison, the edit dates of the file in both folders and the file extension for each file in the compared folders.
Tip: You can change which columns appear by right-clicking a column header and clicking “Customize Columns…”
The possible comparison results show if files or folders are identical or different. If the comparison says a file is “Right only” it means the file or folder was only in the second folder being compared and not the first. Conversely, “Left only” means the file or folder was only in the first folder being compared.
Different results are colour-coded to make spotting them easier. A white background means the files are identical, a yellow background means the files are different and a grey background means the files are only in one of the two folders being compared.
If you double-click on a folder, it will expand to reveal its contents. If you double-click on a file it will open a side by side comparison and will highlight the differences, if any, between the two files.
If you have a large number of files it may be convenient to hide all of the files that are identical, to make it easier to identify differences. To do so, click “View” in the top bar, and then untick “Show identical items” by clicking on it.
Each comparison you run opens in a new tab. To start a new comparison, click on the “Select Files or Folders” tab in the far left, change the targets and click “Compare” again. If you only want to update the existing comparison, you can click the refresh icon on the far right or press the F5 key.