How to Find Duplicate Files in Windows 10 Using CMD or an Easier Way

avatar
Sarah Miller
Updated on July 01, 2024 Preview 3.2K Preview 2
share it facebook share it Twitter

If there are a lot of duplicate files on your Windows PC, you may want to get rid of them. Unnecessary duplicate files waste space and can make file management harder. Windows doesn’t have a feature to directly find and remove them. But Windows’ CMD can help users with this task. This article mainly talks about how to find duplicate files in Windows 10 using CMD successfully.

 

How to find duplicate files in Windows 10 using CMD successfully

Windows’ Command Prompt (also known as CMD) is a command shell, an app that allows users to directly communicate with the operating system. With it, users can use commands to perform various tasks, such as finding duplicate files.

The steps below will show you how to successfully find duplicate files in Windows 10 and Windows 11 using CMD.

1. On your Windows computer, type CMD in the search box on the taskbar.

2. Run CMD as administrator.

run CMD as administrator

3. Use the “dir /s /b *.extension” command to find files with a specific extension.

  • The “dir” is the command used to display files and subfolders in a directory.
  • The “/s” is an option that recursively searches all subdirectories, including the current directory and all subdirectories under it.
  • The “/b” is used to list the full path of the file in a concise manner.
  • The “*.extension” is a wildcard expression that specifies the file extensions to search for.

Here you need to replace "extension" with the file extension you're looking for.

For example, if you want to find all duplicate jpeg files, you can enter “dir /s /b *.jpeg”.

use dir command to find duplicate files

4. Press Enter. A list of the full paths of duplicate files will be displayed. You can check these files to confirm that they are duplicates.

Note: These commands can only list the path of the duplicate files, but do not allow you to preview the found duplicate files directly. What’s more, you can only search a type of duplicates at a time.

How to delete duplicate files in Windows 10 using CMD

After you get the duplicate files found by CMD, you can manually delete duplicate files. For each group of duplicate files, use a file’s path to locate it in File Explore, and delete the file if you don’t need it anymore. Keep one file in each group and delete the rest.

If you want, you can also use commands to automatically remove duplicate files by entering the following commands:

del /s /f *.extension

Replace "extension" with the file extension that you want to delete.

use the del command to delete duplicate files

Note: Using these commands doesn’t allow you to decide which files to delete and will remove duplicate files by deleting them permanently, which can be a bit risky.

How to get rid of duplicate files in the easiest way

Compared to using CMD, there is an easier method, which provides the following benefits.

  • Automatically find duplicate files
  • Automatically select duplicates for you to mass remove
  • Also let you decide which files to remove
  • Easy to use for everyone
  • Reliable and safe to use

The best way to get rid of duplicate files in Windows is to use duplicate file finder and remover software Cisdem Duplicate Finder. It’s easy to use, powerful and reliable.

Cisdem Duplicate Finder main features:

  • Find duplicate photos, videos, audios and all other types of duplicate files
  • Detect duplicate files by content, capable of finding duplicate files with different names
  • Also find similar photos
  • Scan PC and external storage devices for duplicate files
  • Scan one or multiple folders/drives for duplicate files at a time
  • Let you exclude folders and files from scan
  • Display the found duplicate files for you to preview and view
  • Automatically select duplicate files for mass removal
  • Allow you to decide which files to delete by offering customizable selection rules (such as Select Newest)
  • Offer Move to Recycle Bin as the default deletion option (so that files can be recovered)
  • Let you control what to find, where to find and how to delete
  • Available for Windows 10 and Windows 11

1. Download and install Cisdem Duplicate Finder on your Windows PC. Open it.

Free Download Windows 11/10

2. To scan one or multiple folders for duplicate files, drag it or them into the software. Or, you can add locations by clicking the plus icon.

The software window showing that two folders are added to scan for duplicate files

3. Click Scan.

4. Once the scan is done, the All tab will display all the duplicate files that have been found. Sort, preview and view them as you like.

The All tab showing all the duplicate files that have been found in the added folders

5. The software already automatically selects duplicate files for mass deletion. If you want, you can adjust the selection by choosing a selection rule or by hand.

6. Click Delete in the bottom left corner to clean up the selected unwanted duplicate files on your Windows PC.

Clicking the Delete button deletes duplicate files

Tip: In step 2, if you want, you can do some customization by going to Settings the Settings icon. For example, you can set the software to ignore certain folders and files when it scans for duplicate files.

The Settings window showing General settings and Duplicate files settings

Conclusion

Cleaning duplicate files can free up storage space and help you manage files more easily. This article shows you how to find and delete duplicate files in Windows 10 using CMD. To get the job done easily, reliably and efficiently, it’s recommended to use dedicated software. Get rid of useless duplicates and enjoy a better PC experience.

avatar
Sarah Miller

With a passion for tech and writing, Sarah joined Cisdem, where she focuses on creating articles about using utility tools to enhance file management and simplify contact management.

Comments (2) Leave a Reply

Name *

Comment *

  • Bernhard Suchy

    Good job and the app seems easy to use. Thanks for your great instructions!

    6 months ago commonReply

    Name *

    Comment *

  • Bernd Sucher

    Thank you for writing this useful article. it really found a lot of duplicate files on my pc. now my computer speeds up. thanks!

    1 years ago commonReply

    Name *

    Comment *

Hot Articles

How to Find Duplicate Files with Different Names on Windows PC and Mac Duplicate Photo Cleaner Review and How-to Tutorial 2023 How to Find and Remove Amazon Photos Duplicates All at Once
Home > How to Find Duplicate Files in Windows 10 Using CMD or an Easier Way