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

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

Updated on March 05, 2026 Preview 4.0K Preview 3
share it facebook share it Twitter
No robots used, this article has been written and edited by our team under strict editorial guidelines.
avatar
Written by Sarah Miller
avatar
Approved by Adrian Li

If there are many duplicate files on your computer, it's a good idea to delete them. Why? Unnecessary duplicate files take up storage space and lead to disorganization. But how do you delete them?

While Windows doesn't have a built-in duplicate file finder, Window's Command Prompt (aka CMD) can help users identify duplicate files. In this article, I will show you how to use CMD to help you find duplicate files in Windows 10.

 

How to find duplicate files in Windows 10 using CMD

Command Prompt or CMD is a command-line tool included in Windows. With this tool, users can directly "talk to" the operating system and perform many tasks, such as finding duplicate files.

Notes

Unlike common apps, such as File Explorer, Command Prompt uses a text-based interface. And users need to communicate with it by typing commands. If you are not very comfortable with tools like these, see a more user-friendly method.

 

Using CMD doesn't help you directly identify duplicate files. It may just help make the process a bit easier. If you prefer a command-line tool that directly finds duplicates, see this guide.

 

The steps below will show you how to find duplicate files in Windows 10 and Windows 11 with the help of 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, and a list of the full paths of jpeg files will be displayed. You can easily discover potential duplicates by comparing file names.

5. Check potential duplicates in File Explorer to confirm if they are duplicates.

 

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 finds duplicate files, whereas the CMD method only lists file paths
  • Automatically selects duplicates for you to mass remove, whereas the CMD method doesn't help with removal
  • Also lets you decide which files to remove
  • Easy to use for everyone
  • Reliable and safe to use

The easiest 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 10 or later

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 feel you want, you can do your customization by going to Settings the Settings icon. For example, you can ask the software to ignore certain specific folders and files when it is scanning for duplicate files.

The Settings window showing General settings and Duplicate files settings

 

Conclusion

Cleaning duplicate files can help you free up storage space on your computer and help you manage files in a more easy way. And, this article shows you how to find and delete duplicate files in Windows 10 using CMD. If you want to get the job done easily, reliably and efficiently, I think that you can use dedicated software. Get rid of useless duplicates and enjoy a better PC experience. Get rid of useless duplicates and enjoy a better PC experience.

About the authors
avatar
Written by 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.

avatar
Approved by Adrian Li

Adrian Li is Cisdem’s Chief Engineer and serves as the editorial advisor for Duplicate Finder and ContactsMate. His work and insights have been featured in leading tech publications such as Fossbytes, TUAW, Redmond Pie, SafetyDetectives, and BestForAndroid.

Loved the article, share!
Comments (3) Leave a Reply

Name *

Comment *

  • Karola Beil

    Tried the CMD method, but it was a bit too technical for me. I ended up using the tool you recommended. It's much easier.

    8 months ago commonReply

    Name *

    Comment *

  • Bernhard Suchy

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

    1 years 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!

    3 years ago commonReply

    Name *

    Comment *

December 10, 2025
5 Best Duplicate Video Finders for Windows PC and Mac
December 05, 2025
How to Find and Delete Duplicate Files with Different Names
April 17, 2025
How to Find and Delete Duplicate Photos in Windows 10: Free Methods Included
May 30, 2025
How to Find and Delete Duplicate Photos in Windows 11 Easily: 4 Ways