Home » Blog » Technology » How to Recover Permanently Deleted Files from CMD?» Page 58

How to Recover Permanently Deleted Files from CMD?

Mariya Beckham ~ Modified: January 29th, 2024 ~ Technology ~ 5 Minutes Reading

How to Recover Permanently Deleted Files from CMD?

Summary: This article deals with the various techniques to recover shift deleted files in Windows 10 and other versions below. Users can proficiently restore formatted folders, deleted data and even recover virus infected files. Just sit back and follow the article to get acquainted with every method to recover permanently deleted files from CMD.

I mistakenly shift deleted my important data from the personal computer. I do not want to buy the software. How can I recover permanently deleted files using CMD? I have heard of the some of the command line features which will help me to recover those files. But do not know about the procedure. Can anybody tell me how to use the command prompt to restore my permanently deleted data?

From the above query, it must be clear what’s in the blog. Before proceeding forward, we will talk about the command line or CMD in brief.

Command Prompt – Introduction

CMD or Command Line is the inbuilt utility of Windows which is used for troubleshooting and fix the minor level of corruption in the Windows Operating System. Sometimes, this can also be used to access deleted or permanently deleted files from the computer system. It holds a set of commands which acts as an interpreter between the machine and the user.

Ways to Access Command Prompt

Go to the Start menu and type command prompt to access the shortcut of CMD using Apps icon

                                                                     OR

Use your keyboard and hit “Win + R” keys. This is the fastest way to access the CMD

                                                                     OR

Hit “Win + X” button. A pop-up list will appear, choose “Windows Powershell”. This is particularly for Windows 10. You can perform the same steps in Powershell also. If you find it difficult, go for the “Win + R” in Windows 10 also to recover permanently deleted files from CMD.

A black window showing the location of the Command Prompt will be displayed. The window is somewhat like this:

You can go to the C:\Windows\System32\cmd.exe location also. The location depends upon the version of the Windows you are using. This is the screenshot of Windows 10 OS.

Note: It is recommended to use CMD in Administrator Mode otherwise some of its commands may not work or run.

How to Recover Permanently Deleted Files from CMD?

Go through this section to perform the step one by one without any confusion.

1.  Type chkdsk ‘drive letter:’ /f and then press Enter key in the Command Prompt window, like C:\USER\PROGRAM FILE\chkdsk D: /f
2.  Now hit on Y key and wait till the command lines start again
3.  When the command line starts, type the drive letter again and then click on Enter
4.  Type, [drive letter: \ >attrib -h -r -s/s /d *.*]
5.  (attrib -r -s drive:\\), all the files which are stored in the drive will be recovered after performing this command.

Let us understand what is the actual meaning of each letter

-r: This is the read-only attribute
-s: This symbol provides ‘System’ attribute to the selected files
-h: It gives ‘Hidden’ attribute to the chosen files
/S: It assigns to search the specified path including subfolders
/D: This is process folders

6.  A new folder will be created after the completion of the process on the storage device which you will use to save the restored data.
7.  The files which are recovered will be saved in the .chk format. You need to change the format to view the file in the desired file format. No file hierarchy will be maintained during the recovery process and you have to save the whole data in the desired location on your own.

Is There Any Better Solution to Recover Permanently Deleted Files Without Using CMD?

Of course, there is. The ultimate solution is to use Hard Drive Data Recovery Software. This tool will instantly restore shift deleted folders and data and that too without using CMD. The tool provides formatted Disk Drive Recovery along with many exceptional features.

Some of the interesting features of the tool are:

  • Compatible with any version of the Windows
  • Supports FAT, NTFS and exFAT type of file system
  • Restore data from both internal & external hard drive
  • Save & Recover permanently deleted files in no time
  • No use of CMD or any other computer component
  • Retrieve data including all the multimedia files like images, videos, audios, etc.

Winding Up

You can recover permanently deleted files from CMD but in most cases, this is not going to help you. For using the command line, you have to know about every parameter which is being used in the process which is a difficult task. Instead, use a more appropriate way. The optimal solution is to opt for a third party solution and corrupted or formatted data in no time. After using the software you need not worry about anything. The tool knows its work and does it efficiently.