Recover Deleted Files Using Command Prompt

Recover Deleted Files Using Command Prompt In Windows 10


Command Prompt is one of the best ways to recover corrupted and deleted files and folders. In fact, you can recover a complete partition using the Command prompt. In addition, the command prompt helps the user troubleshoot any system-related problems.

Command Prompt is the most powerful inbuilt tool in the Windows operating system. It helps the user retrieve data that have been lost due to a virus attack and accidental deletion. In addition, you can expect the Command prompt helps the user fix the bad sectors of the digital storage devices.

In this article, we will discuss a step-by-step guide to recover related files using the command prompt. Whenever you recover deleted files using the command prompt then you can follow the following tricks. 

File Structure

Before you can understand how to use Command Prompt to recover lost and deleted data, let’s first learn more about the file structure. 

A file is categorized into two different parts.

  • A directory: It contains the file name and the list of file blocks.
  • The actual block: This part contains the complete information about the file.

When you delete a file, only the directory is deleted; the second part remains intact till new data is added and overwritten. Thus, you have a chance of recovering the data once it has been deleted. This is where Command Prompt helps the user get back the lost and deleted data. Recover deleted files using the command prompt can provide you with the ultimate solution for your problems. 

Recovering data using Command Prompt

The best way to recover lost or deleted data is by using Command Prompt. It is an inbuilt feature of the Windows operating system that is more proficient than other data recovery methods. 

There are two ways you can use Command Prompt. You can recover deleted files using the command prompt to make things easier for you. 

Method 1: Recovering Data From External Hard Drive

One of the worst things you can do while deleting data is SHIFT deleting the data. While normal delete will ensure that the deleted files and folder are in the recycle bin. But with the SHIFT delete, the data is deleted permanently.

If you have deleted the data permanently, that means it is time for the CMD to do its job.

Follow the steps:

  • Press Windows + R. or Type CMD in the Window Search bar.
  • A Command window will appear. 
  • Type: chkdsk ‘drive letter’ /f.
  • Now press Y (YES) until the command line starts again.
  • Now enter the drive letter and press enter.
  • Now type: [drive letter : \ >attrib –h –r –s /s /d *.*]. This will recover everything from the drive.

After completing the process, create a new folder where all the recovered data can be stored.

Method 2: Recovering Data from Recycle Bin

When the recycle bin is full, it deletes some of the data to accommodate the latest deletion. However, these data remain in the recoverable start until the recycle bin state.

Follow the steps to recover such files and folders.

  • Open the Command Prompt Window.
  • Type: start shell: RecycleBinFolder.
  • Now choose the file that you want to recover.

Sometimes, executing these steps becomes a daunting task, especially if they are introduced to these sorts of things for the first time.

Some Other Effective Methods

Although CMD offers a convenient way to recover lost data, most people might not find the needed confidence to work on Command Window. However, if you are one of them, you can use these alternative methods.

1. Data Recovery Software

We believe that data recovery software is the best solution, whether you are an amateur or veteran at data recovery. We use various data recovery software and would like to recommend the same. It is one of the complete software covering all the data loss scenarios.

2. Data Backups

Data backups have always been a great way to guard your sensitive data. If you are a responsible person, you would have data backups. Use the data backups to restore lost data. And if you are not, start backing up your data.


After considering all the scenarios, we have discussed all the possible ways to use the Command Prompt to recover lost and deleted data. However, there are times; most people do not feel confident with the right of the Command Prompt. So, we have also added some alternative methods to recover lost data. These are some of the methods you can use to recover the deleted files using the command prompt. 

FAQ (Frequently Asked Questions) 

1. How Can You Recover Permanently Deleted Files Using Windows 10? 

There are certain simple steps that you can follow for recovering permanently deleted files using windows 10 like:- 

  • You can open the start menu. 
  • After that type restores files and then hit enter in the menu. 
  • You can look at the folder where the deleted files are stored. 
  • Make a selection of the restore buttons in the middle of it to undelete the windows 10 files.   

These are some of the steps you can follow for recovering permanently deleted files using Windows 10. 

2. Can Delete Files Be Recovered In Windows 10? 

The command-line utility can restore the deleted files if you have deleted any files from windows 10. You can recover it if the files are no longer in the recycle bin. 

3. How Do You Recover Permanently Deleted Files?  

For the recovery of the deleted files, there are certain steps you have to follow to achieve your objectives in the best possible ways:-   

  • You can double-click on the recycle bin to open it. 
  • See and find the files that you want to recover. 
  • You can select the restore option of the file to choose 
  • The last step is to choose the disk drill by downloading and installing it. 
  • After that, launch the application. 

4. Which Command Can Be Used To Restore A Deleted File? 

The Undeleted command file can help you to restore a deleted file of the no new files or the changes that have been made. If you have accidentally deleted the file then you have to stop the deleted file that can work in your favor in the best possible ways.

More Resources:

Share 0
Tweet 0
Pin it 0
Share 0
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like