How to Recover Permanently Deleted Files Windows 10 Using CMD

Avatar for Mia
recover permanently deleted files windows 10 using cmd

To recover permanently deleted files windows 10 using cmd may be a nightmare, especially when they have been permanently delete, but don’t get excited at all because there are ways to get them, including using commands. (CMD). However, the CMD works as recommended, which may confuse users. No worries, though. We’ll briefly discuss the Command Prompt and how to restore permanently lost data in Windows 10/11 using CMD. Other reference choices will be provided. 

What is a Command Prompt on My PC?

Windows users can gain more system control with the Command Prompt (CMD). It looks bad, but once you get used to it, the possibilities are unlimited. The CMD lets you control your computer via command line. Operations are directly controlled internally. The CMD may move, copy, run scripts, and diagnose the system. You can automate, troubleshoot, and access secret functions without a graphical user interface with the appropriate instructions. Command prompt investigation can give non-technical users more power and configuration over their computer. 

Can I Recover Permanently Deleted Files Windows 10 Using Undelete Command?

When we accidentally delete a file, it will immediately disappear, but the system will clear its information in the boot section and hide it; the file itself remains in the original section. This lets us permanently restore lost files using Windows 10, 11, or 7 CMD. However, this solution cannot ensure success. File type, deletion method, and time since deletion affect recovery results. Trying it is still worthwhile. 

How to Recover Deleted Files in Recycle Bin using CMD

If you feel uncomfortable after emptying recycling tanks, don’t worry. CMD is a great way to locate files that have been deleted from recycled tanks or use the “attrib” command to find the files. Follow these steps to recover files that were deleted from recycle tanks using the command instructions:

  • Press the Windows and R buttons at the same time to open the dialogue.
  • Type “cmd” and press Enter.
  • When printing “cd” and pressing Enter
  • Next, type “cd $Recycle.bin” and press Enter. Please note that this command may vary in different operating systems, such as “recycle” or “Recycler”.
  • Then type “attrib -r -s -h” and press Enter.
  • Finally, type “dir */s” and press Enter. This will show all deleted files. By following these steps, you can quickly and permanently restore deleted files using the command instructions in Windows 10/11/7.

After performing these steps, you will see a list of items such as Dc25.url, Dc266.Ink, etc. The number shows the number of files deleted with “D” which specifies the drive installed on the Windows operating system. The hidden folder named “Recycle” was created in every default with the storage tank enabled, and the deleted file will be moved to this folder and renamed “C.” The original full name and route will be stored in a map file called data.

To find the file you want, use the COPY command. For example, you can use “COPY *.DOC C:\Temp” to copy all the DOC files to the C: \Temp directory. Then you can open these files and find one you want to recover using CMD.

How to Recover Permanently Deleted Files Using Command Prompt

So if you want to permanently recover deleted files from internal or external drives. This is especially important for external devices such as USB, flash drives, pens, or SD cards, where the removed items were not sent to the trash even if you pressed the negative button. However, CMD can still be used to cancel file deletion in such situations. Follow the steps below to recover the deleted files using CMD:

  • Click the Start button at the bottom left corner of the screen and print CMD.
  • Search the instructions and click on “Run as Administrator” to open them.
  • Print “chkdsk E: / f” and press Enter. (Replace “E” with your drive letter.). If a file from this volume is used, close or type “Y” to force removal.
  • Enter “attrib -h -r -s /s /d E:” Then press Enter. This method will help you to recover files using CMD.

Note: Deleted files will be saved to your E drive in a newly created folder. You will need to change the plugin file to a normal format to use it.

Best 6 Alternative Solutions to Recover Permanently Deleted Files Windows 10 Using CMD

While using the instructions to recover deleted files in Windows 7/10/11 must be aware of some computers, there are alternative solutions for those who are not familiar with CMD. These options have a simpler user interface and can be a great choice for recovering lost files. Here are six best options:


WinfrGUI is an effortless solution for recovering permanently deleted files on Windows 10 and so on. With its easy-to-use graphical interface, you can say goodbye to complicated commands and parameters. This software will take you through every step in order to get the perfect experience from start to finish. Whether you’re a beginner or a technical user with expertise, Winfr GUI will handle every skill level. Makes file recovery even better. It uses advanced scanning techniques to avoid leaving any stones and provides a comprehensive recovery of your files.

EaseUS Data Recovery Wizard:

EaseUS Data Recovery Wizard is a reliable data recovery solution for Windows PC users. Advanced scanning mode increases accuracy and recovery chances by immersing the system after a quick first scan. It supports undelete on all devices, including PCs, laptops, digital cameras, USB flash drives, and memory cards. With this alternative solution, you can permanently recover deleted files in Windows 10/11 using an easy-to-use interface.


Recoverit is a powerful solution for fast recovery of lost files that have been formatted unintentionally, affected by damage to hard drives, or damaged by virus attacks. This software supports all main file systems, enabling you to recover data from various storage media. Whether it’s valuable images or important work documents that were mistakenly deleted, you have recover cover.

Puran File Recovery

Puran File Recovery is a great tool for recovering deleted files on Windows PCs. The convenient, fast, precise design makes the recovery process quick, easy, and stress-free. The software can scan all hard drives in depth in minutes to recover files even after they have been removed from the recycling tank. With its easy-to-use interface and advanced scanning algorithms, this program is an excellent choice for the recovery of deleted files using CMD.


Recuva uses an advanced algorithm to find lost data and provide reliable results in no time. It can recover almost all common types of files, including documents, photos, videos, and compressed records. Its easy-to-use interface makes it easy to use even for those with no technical knowledge.

SoftPerfect File Recovery

SoftPerfect File Recovery is a lightweight application for retrieving deleted files on Windows 10, 11, and 7. It uses an advanced algorithm to find lost information and deliver reliable results quickly. The software has the option to switch between fast scanning mode, which finds recently deleted files within seconds, and full scan mode, which retrieves all missing files on your device.

How to Prevent Important Files from Being Accidentally Deleted

Using CMD to recover deleted files in Windows can be complicated for some users. Therefore, it is recommended to consider these alternative solutions, which offer a simple user interface to help you recover your files faster.

To prevent important files from being mistakenly deleted, you can use the following methods:

  • Enables the file history function on your Windows computer to create a backup of your files. This ensures that even if you accidentally delete something, you will receive a back-up copy.
  • Create a backup of the necessary files on an external hard drive or cloud storage. This provides an additional layer of protection and ensures that you can still access your files after accidentally deleted.
  • Restrict access to important files by setting password protection. This can prevent deletion by unauthorized users.
  • Always double-check before pressing the delete button. Take a while to check what you’re deleting to avoid unintentional deletion.

By following these simple precautions, you can protect your valuable files from unintentional deletion.


In conclusion, mistaken deletion of important files may be disappointing, but there are ways to recover them using CMD in Windows 11/10/7. There are also other solutions that can make the regeneration process easier.

>>Also Read: Is There A Way To Get Permanently Deleted Photos Back on Windows?