Как сравнить содержание папок в windows 10

We all have backup folders on our computers. As a result, there can be two backup folders with similar names, and you won’t know what’s what. When this happens, it is difficult to decide which folders to keep and which to discard. You can verify both folders manually, but the problem may occur if there are too many files with similar names. To avoid unnecessary hard work, you need a tool to compare folders in Windows 10.

The comparison tools can give you similarities and differences between the folder based on different factors. Once you know the differences, you can share files directly from the File Explorer to the hard drive, flash drive, emails or simply discard them.

There are Windows 10 tools, inbuilt options, and third-party software to compare the contents of two folders, be it file sizes, file formats or backed-up files. We have listed some easy ways to compare folders in Windows 10.  

1. Command Prompt

Let’s go with the inbuilt way first. You can use Command Prompt to compare folders in Windows 10. Windows 10 provides commands for everything, and if you are comfortable with the command line, you can go with it this way.

You can use Robocopy to compare folders in Windows 10. It comes inbuilt in Windows 10.

Press Windows key + S and type cmd in the search bar of the Start menu. Open Command Prompt from the search results.

Open Command Prompt

In the Command Prompt terminal, type the below command and press Enter.

robocopy “Folder 1 Path” “Folder 2 Path” /L /NJH /NJS /NP /NS

You need to add both the location of the folders in the command.

The command will look like this:

robocopy "C:UsersUrviDesktopFolder 1" "C:UsersUrviDesktopFolder 2" /L /NJH /NJS /NP /NS

robocopy command execution

Make sure you type in the right path of the folder/directory; otherwise, you will get errors while executing the command.

The output of this command will be as below.

                        C:UsersUrviDesktopFolder 1

          *EXTRA File                   abc.bat

          *EXTRA File                   sshot-6.png

          *EXTRA File                   sshot-8.jpeg

            New File                    sshot-2.png

            New File                    taskkill.lnk

Here, abc.bat, sshot-6.png, and sshot-8.png are present in Folder 2 and not in Folder 1. Similarly, sshot-2.png and taskkill.lnk are present in Folder 1 and not Folder 2.

The files which are present in both folders are not displayed in the output. Therefore, some users may find the output very simple and not that informative as comparison tools. Well, if you just want to know missing files in the source and destination folder, the robocopy command is perfect.

You can compare two files as well with the Command Prompt. This can be useful for the developers and writers with files with different versions to know the difference between two files.

In the terminal window, go to the location where the files are saved using the CD command.

For example,

cd C:UsersUrviDesktopFolder 1 

You can use the fc command to compare both the files, as shown below. We have compared text files.

fc file1.txt file2.txt
Compare Folders in Windows 10

Compare two files

You will see the lines which are different in the output below. If the files are at different locations you can add the file path before the file name, just as shown below.

fc C:UsersUrviDesktopFile1.txt C:UsersUrviDesktopFile2.txt

Make sure you add the file extension to the command and file names are correct; otherwise, the command won’t be able to find the file in the mentioned folder.

2. WinDiff

If you want a graphical interface to compare folders in Windows 10, you can use WinDiff. It is developed by Windows and is available for download on the website. The app is straightforward to use with no extra icons and features.

Firstly, download the WinDiff app and then extract it. As the installation process completes, the app will be downloaded in the zip file. Make sure you extract it before using it.

Open the extracted folder and double-click on the RunWinDiff.exe file to run it. Now, add the path of the windiff.exe file and ensure it is in the right location; otherwise, you won’t be able to compare the folders. Once the path is added, click on the three dots to add the folder. The other icon next to the three dots is to add a file for comparison.

Lastly, click on the search icon to compare folders in Windows 10.

Compare folder using WinDiff

The comparison of files will be displayed on the new window. You will see detailed file comparison – identical files as well as differences between files.

Comparison result

Comparison result

Click on Expand button to see the file contents.

You can change the result’s view and make changes to what should be visible under the Options menu.

Change Options

You can play around with the option to see different results of the comparison and differences in files. WinDiff can be used as a file comparison tool as well.

3. WinMerge

You can use a third-party app called WinMerge to compare folders in Windows 10. The app is safe and easy to use.

Step 1: Download WinMerge from its official website and double-click on the installation file to start with the install. Click on Run.

Step 2: Click on Next after reading the license agreement.

Click on Next to Compare Folders in Windows 10

Click on Next

Step 3: Select the location where you want to save program files of WinMerge. If you are not sure about the location, let it be as it is. Click on Next.

Click on Next and select destination location

Click on Next

Step 4: Keep the plugins and features getting installed with WinMerge as it is. You can install the languages package if you want.

Once everything is done, click on Next.

Click on Next after selecting components

Click on Next

Step 5: Select Additional tasks as per your wish. We recommend enabling Explorer context menu integration. And then click on Next.

Select Additional tasks

Select Additional tasks

Step 6: Once you reach the Ready to Install window, check all the settings and click on Install.

Click on Install to Compare Folders in Windows 10

Click on Install

Step 7: Lastly, click on Finish to complete the installation and launch the WinMerge application on your computer.

Click on Finish

Click on Finish

Step 8: Once the WinMerge is installed, press Ctrl + O keys simultaneously to launch a new comparison window.

Step 9: You can click on the Browse button to add the folder/directory location. Also, check the checkbox next to Read-only for both the folders.  

The Folder Filter should be set to *.* and tick the checkbox next to Include Subfolders.

Click on Compare to start the comparison. If the folder contains 100s of files and subfolders, the comparison output may take time.

Compare folder using WinMerge

Compare folder using WinMerge

Now, you have the comparison result in the next tab. You can see the right and left file dates along with filenames and extensions. The extension column can help you know file types.

Comparison results

Comparison results

If you want to compare files, you can double-click on the file and see the difference. If it is a text file, you will see file content in two side-by-side windows. The view of the comparison result can be changed easily from the View option in the menu bar.

4. PowerShell

If you love writing PowerShell scripts, you will like this way of comparing folders in Windows 10. Scripts are fun only if we know how to work with them; otherwise, they can get annoying to understand. You can try out the below script in PowerShell and check if you find it comfortable or not.

Press Windows key + X to open the quick link menu and click on Windows PowerShell to open it.

In the PowerShell window, type the following script and press Enter.

$fso = Get-ChildItem -Recurse -path C:UsersUrviDesktopFolder1
$fsoBU = Get-ChildItem -Recurse -path C:UsersUrviDesktopFolder2
Compare-Object -ReferenceObject $fso -DifferenceObject $fsoBU

Script Credit

Here, change the folder1 and folder2 paths as per your requirement.

Folder compared using PowerShell

Folder compared using PowerShell

The output of the comparison means abc.bat, sshot-6.png, and sshot-8.png are present in Folder 2 but missing in Folder 1. On the other hand, file1.txt, file2.txt, sshot-2.png, and taskkill.ink are present in Folder 1 and not in Folder 2.

You can map your output according to the above analysis.

5. Third-party Applications

WinMerge is a famous third-party application for comparing folders in Windows 10. However, if you want more options for third-party apps, you can go through the list below.

Total Commander

Total Commander is all in one when it comes to files and folders. You can use it as a file manager or folder comparison tool. If there are differences in the files/folders, you can also synchronize it with Total Commander. The tool is easy to use and has too many features to help you with files and folders.

Download Total Commander

Meld

Meld is a tool for developers and coders who want to compare folders, directories, and version control projects. It is a perfect tool for developers who work with multiple files and need constant updates on code changes. You can compare files two and three ways with Meld. The tool supports Git, Subversion, Bazaar, and much more. The code comparison can be made easy with this tool.  

Download Meld

DiffMerge

DiffMerge can be used on Windows, macOS, and Linux operating systems to compare and merge files visually. You can use it for folder and file comparison. The advanced tool makes it easy to check duplicate files and folders. There is an option to integrate this tool in File Explorer. The tool is easy to use and customizable as per the user’s needs.

Download DiffMerge

FreeFileSync

FreeFileSync is a free and open-source tool that can help you compare folders in Windows 10. It is an intelligent tool that can help you take backup of your files intelligently. You can create backup copies of all the essential files on your computer using this tool. In addition, FreeFileSync helps you in the synchronization of files on Windows, Mac, and Linux.

Download FreeFileSync

Conclusion

Comparing document files and folders visually can be a lot of unwanted hard work. If you have 100s and 1000s of subfolders and files in a particular folder, it becomes impossible to check them manually. There are tools, commands, and scripts that can help you compare folders in Windows 10.

The third-party tools can help you compare, merge, and synchronize folders. You can also use Command Prompt terminal and PowerShell to compare folder contents. If you want a user interface for comparing tools like WinMerge and WinDiff is perfect. There are many ways to compare folders in Windows 10; you can choose the method you are comfortable with.

Quick Links

  • Compare Folders From Properties

  • Compare Folders Using Command Prompt

  • Compare Folders With WinMerge

Summary

  • One way to compare folders is to right-click your folders one at a time and choose «Properties» for each. Then compare the Properties window of each folder.
  • The robocopy command is a command-line tool that can be used to view the differences between folder.
  • Use WinMerge to compare the contents and details of folders if you want a graphical tool.

Do you want to compare the number of files or folders or simply visualize the difference between two folders? If so, you have two graphical and one command line method to do that. We’ll show you how to perform the folder comparison task on your Windows 11 or Windows 10 PC.

Compare Folders From Properties

To compare the number of files, subfolders, the size, and the creation date of two folders, use the Properties option in Windows File Explorer. This lets you quickly glance at the main attributes of a folder.

To start, launch File Explorer using Windows+E. Find the first folder, right-click it, and select «Properties.»

'Properties' highlighted for a folder in File Explorer.

Keep the first folder’s «Properties» window open. Then, find the second folder, right-click it, and select «Properties.»

You now have the «Properties» window open for both your folders. Bring these windows side-by-side by dragging them, and you can see the differences in the contents of these folders. For example, you can see how many files both folders have, what size these folders are, and so on.

'Properties' windows for two folders in File Explorer.

That gives you a general overview of the differences between your folders.

Compare Folders Using Command Prompt

If you prefer command line methods over graphical ones, use the robocopy command in Command Prompt to see the differences between the two folders. This command is actually for copying files from one folder to another, but you can make it show the differences between two specified folders and not copy any files.

To use robocopy, first open the Start Menu, search Command Prompt, and launch it.

Command Prompt highlighted in Start Menu.

In Command Prompt, type the following command. Replace «Folder1» with the path to your first folder and «Folder2» with the path to your second folder. Ensure both folder paths are enclosed in double quotes.

To copy a folder’s full path along with double quotes around the path, hold down the Shift key on your keyboard, right-click your folder, and choose «Copy as Path.»

robocopy "Folder1" "Folder2" /L /NJH /NJS /NP /NS
The 'robocopy' command typed in Command Prompt.

You’ll see the differences between your folders.

If you’re curious as to what the robocopy command does, here’s an explanation of each flag we used with the command:

  • L: This tells the command not to copy files but show the log of the files in the specified folder.
  • NJH: This flag excludes junctions, hard links, and reparse points from consideration. This way, the command focuses on the regular files in the specified folders.
  • NJS: This flag excludes symbolic links from the process.
  • NP: This flag excludes folder timestamps.
  • NS: This flag excludes file security information.

Compare Folders With WinMerge

If you want more details about the differences in your folders, Windows doesn’t have a built-in tool to help you with that. However, you can use a free third-party app called WinMerge to compare multiple folders.

To use it, launch a web browser on your PC, head to the WinMerge site, and download and install the app. Make sure to download the app’s executable and not the ZIP version.

Open the WinMerge app, then select File > Open in the Menu Bar or press Ctrl+O.

File > Open highlighted in WinMerge.» src=»https://static1.howtogeekimages.com/wordpress/wp-content/uploads/2024/01/5-open-folder-winmerge.jpg»></p>
<div class= Картинка с сайта: www.howtogeek.com

For the «1st File or Folder» field, select «Browse» and choose the first folder to compare.

'Browse' highlighted for the '1st File or Folder' field in WinMerge.

For the «2nd File or Folder» field, click the «Browse» button and choose the second folder to compare.

'Browse' highlighted for the '2nd File or Folder' field in WinMerge.

In both fields, enable the «Read-Only» option. Click the «Folder: Filter» field and type *.* if it isn’t already there. This ensures the app compares all the files in both the specified folders. Then, at the bottom, click «Compare.»

Various comparison options highlighted in WinMerge.

On the following screen, you’ll see the comparison of the specified folders. You’ll see information like identical files in both folders, files missing from one folder, and so on.

The comparison of two folders in WinMerge.

And that’s how you know what one folder has that another doesn’t. This can be really useful if you’re trying to quickly compare different versions of the same folder, like you’d have when you create a backup.

File Explorer in Windows 11 helps you get the files you need quickly and easily.

To check it out in Windows 11, select it on the taskbar or the Start menu, or press the Windows logo key + E on your keyboard.

Shows File Explorer, with the right-click menu open for a file. "Pin to Quick access" is highlighted in the menu.

How to use File Explorer:

  • To pin a folder to Quick access, right-click (or press and hold) the folder and select Pin to Quick access.

  • To share a file, select it, then select Share on the ribbon.

  • To move the location of a file or folder, select it and then select Cut  on the ribbon. Navigate to the new location, then select Paste .

    Note: For files and folders in Quick access, you’ll need to right-click (or press and hold) and select Open before you can cut and paste.

  • To change how your items appear in File Explorer, select View on the ribbon and choose between showing icons, lists, details, and more.

  • To reduce the space between files, select View > Compact view.

  • To find relevant files from your PC and the cloud, search from File Explorer Home.

    Note: Sign in to your cloud account(s) from Start > Settings > Accounts to enable cloud search.

Quick access

Starting with Windows 11, version 22H2, the known Windows folders—Desktop, Documents, Downloads, Pictures, Music, and Videos—are available by default as pinned folders in Quick access in both File Explorer Home and the left navigation pane. These default folders are no longer displayed under This PC to keep the view focused on your PC’s drives and network locations. 

Where to find the permanent location of known folders in Windows 11 File Explorer.

You can set any folder to show up in Quick access so it’ll be easy to find. Just right-click (or long-press) it and select Pin to Quick access. Unpin it when you don’t need it there anymore by right-clicking (or long-pressing) it and selecting Unpin from Quick access.

If you unpin these known Windows folders and decide to restore them later, here is an easy way to restore them in Quick access under Home and in the navigation pane: 

  1. Select Start > File Explorer , or select the File Explorer icon in the taskbar.

  2. Select Home in the left navigation pane.

  3. Select the Up arrow from the navigation buttons available to the left of the address bar. This view displays all 6 known Windows folders—Desktop, Documents, Downloads, Pictures, Music, and Videos.

  4. Select and hold (or right-click) on the folder you wish to restore and select Pin to Quick access from the context menu.

The folder will now be available in your navigation pane and in File Explorer Home.

If you have hidden the left navigation pane and would like to make it visible in your File Explorer window, you can show it again using these steps: 

  1. Select Start > File Explorer , or select the File Explorer icon in the taskbar.

  2. Select View from the Command Bar.

  3. Select Show, then select Navigation Pane.

The navigation pane should now be visible in your File Explorer window.

Context menu

File Explorer has a new, streamlined context menu, making it easier to get to popular commands. Right-click on a file to access the new context menu. 

You can find Cut , Copy , Paste , Rename , Share , and Delete at the top of the context menu. Hover over any icon to see its name. 

Select commands for files or folders in the File Explorer right-click context menu.

  1. Right-click (or select and hold) on a file or folder to open the context menu.

  2. Select Show more options.

Note: Not all extensions from Windows 10 will be available in the streamlined Windows 11 context menu, but they’ll always be available when selecting Show more options. Some apps will update over time to join the new context menu. Check with your app developer about availability and timing for specific apps.  

Common File Explorer options

By default, File Explorer opens to Quick access, renamed to File Explorer Home in Windows 11, Version 22H2. We recommend Home as your landing page in File Explorer, where you can:

  • Access your most recent and favorited Office.com files quickly.

  • Search and find your relevant files from your PC and the cloud much faster than with This PC.

If you’d rather have File Explorer open to This PC, on the ribbon, select See more > Options > Open File Explorer to, then select This PC > Apply

Open File Explorer  from the taskbar. Select View Show, then select File name extensions to view file name extensions.

Open File Explorer  from the taskbar. Select View Show, then select Hidden items to view hidden files and folders.

Open File Explorer  from the taskbar. Select View Show, then select Item check boxes to view a check box next to files and folders to select them.

После действий по перемещению папки «Загрузки» в Windows 11/10, часто — неудачных с необходимостью вернуть исходное расположение, некоторые пользователи сталкиваются с тем, что название папки в проводнике изменяется на «Downloads» даже в русскоязычной версии системы.

В этой простой инструкции подробно о том, как вернуть имя «Загрузки» для папки, имя которой само изменилось на «Downloads». Те же шаги актуальны и для других пользовательских папок, например — «Документы» (Documents).

Как определяется имя папки «Загрузки» и его настройка

Фактически папка «Загрузки» с параметрами по умолчанию расположена по пути C:\Users\Имя\Downloads, то есть является англоязычным даже если Windows на русском языке. При перемещении папки, отображаемое имя Downloads также сохраняется за счет назначения специального идентификатора (GUID) для папки.

Папка Загрузки стала отображаться как Downloads

Для целей локализации имени в папке присутствует файл desktop.ini, который и содержит сведения об отображаемом имени папки и позволяет показывать её как «Загрузки» у русскоязычных пользователей.

Если вы удалили файл desktop.ini или неосторожность привела к необходимости исправлять пути к папке загрузок в реестре, сведений о локализованном имени папки может не оказаться, отсюда и показ «Downloads» (определяется GUID и фактическим расположением) вместо «Загрузки» (определяется desktop.ini).

Исправить ситуацию просто, достаточно выполнить следующие шаги:

  1. Включите показ скрытых и системных файлов и папок в Windows (внимательно: это две отдельные опции):
  2. Проверьте, есть ли в папке скрытый системный файл desktop.ini, при его наличии — откройте его с помощью любого текстового редактора, например — в «Блокноте».
  3. При отсутствии можете взять из любой другой папки, где он есть и скопировать (не переместить) в папку «Загрузки».
  4. В файле пропишите следующие строки (значения по умолчанию для Windows 11, предполагаю, что и в Windows 10 те же самые):
    [.ShellClassInfo]
    LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21798
    IconResource=%SystemRoot%\system32\imageres.dll,-184

    и сохраните файл.

    Изменение файла desktop.ini в папке Загрузки

  5. Перезапустите «Проводник», для этого можно использовать диспетчер задач. Либо перезагрузите компьютер.
    Перезапуск проводника

  6. Готово, теперь папка будет называться «Загрузки»:
    Имя папки Загрузки исправлено

Некоторые дополнительные нюансы, которые могут пригодиться или облегчить задачу:

  • Вместо ручного редактирования вы можете скопировать файл desktop.ini из папки «Загрузки» с другого компьютера, где проблемы с отображаемым именем отсутствуют.
  • При желании вы можете указать произвольное имя для папки, просто указав его в кавычках для параметра LocalizedResourceName в файле desktop.ini, пример результата:
    Собственное имя для папки Загрузки

Надеюсь, информация была полезной. Если остаются вопросы, связанные с папкой «Загрузки» или другими пользовательскими папками, вы можете задать их в комментариях ниже. На близкую тему может быть полезным: Библиотеки в Windows 11 и 10 — как создать и настроить?

  1. Step 1 Нажмите ⊞ Win+E, чтобы открыть Проводник.

  2. Step 2 Дважды щелкните по первой папке, чтобы отобразить ее содержимое.

  3. Step 3 Перетащите окно вправо.

    Для этого удерживайте панель меню в верхней части окна и перетащите его в правую часть экрана. Окно теперь будет занимать правую половину экрана.

  4. Step 4 Нажмите ⊞ Win+E, чтобы открыть другое окно Проводника.

  5. Step 5 Дважды щелкните по второй папке.

  6. Step 6 Перетащите окно влево.

    Удерживайте панель меню в верхней части окна и перетащите его в левую часть экрана. Таким образом, содержимое одной папки будет показано слева, а другой — справа.

    • Отрегулируйте положение окон в зависимости от размера монитора и разрешения экрана, чтобы отобразить всю информацию.
  7. Step 7 Перейдите на вкладку Вид в верхней части обоих окон.

  8. Step 8 Переключите способ отображения...

    Переключите способ отображения в обеих папках на Содержимое из панели «Структура». Так вы увидите больше информации о каждом файле и вложенной папке, включая тип файла (папка с файлом, видео, изображение).

    • Если папка содержит подпапки, то рядом с каждой из них будет стоять дата последнего изменения.
  9. Step 9 Щелкните правой кнопкой...

    Щелкните правой кнопкой мыши по пустому пространству в одной из сравниваемых папок. На экране появится всплывающее меню.

  10. Step 10 Выберите Свойства, чтобы отобразить общий размер текущей папки.

  11. Step 11 Щелкните правой кнопкой...

    Щелкните правой кнопкой мыши по пустому пространству в другой папке. Теперь отобразите размер второй папки, чтобы можно было их сравнить.

  12. Step 12 Выберите Свойства, чтобы отобразить размеры обеих папок бок о бок.

    Реклама

Об этой статье

Эту страницу просматривали 21 579 раз.

Была ли эта статья полезной?

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

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Диспетчер загрузки windows не удалось запустить windows 0xc000000f как исправить
  • Как узнать сколько у тебя бит на windows 10
  • Как зайти в хранилище сертификатов windows xp
  • Программное обеспечение windows бухгалтерский учет
  • Epson px730wd драйвер для windows 10