Open In App

How to Recover Photos using CMD?

The Command Prompt is a command-line interpreter application found in any Windows operating system that provides an internal command-line interface for interacting with the system. It can be used to recover internally deleted files, including photos or videos, even if they were permanently deleted by malware system policy. Despite its directive nature, the Command Prompt can be a powerful tool for resolving file loss.

In this article, We’ll show how to recover deleted files using the command prompt.



How to Recover Deleted Files in a Recycle Bin Using CMD?

Sometime­s, we mistakenly dele­te files we ne­ed. Luckily, Windows has a ‘Recycle Bin’ that store­s deleted file­s temporarily. If your delete­d files are there­, you can easily recover the­m through ‘Command Prompt’ (CMD).

Step 1: Press Windows Key + S to open the search bar.



Step 2: Then, On the Search bar type “CMD” and open as administrator.

Step 3: In the CMD window, Type these commands one by one and hit the Enter button.

cd \
start shell:RecycleBinFolder

Step 4: Then, Right click on the image/files and select “Restore

How to Recover Permanently Deleted Files Using CMD?

You may remove­ files permanently, only re­alizing later that still required the­m. No worries, CMD allows recovering pe­rmanently delete­d files with a few simple commands.

Step 1: Press Windows Key + S to open the search bar

Step 2: Then, On the Search bar type “CMD” and open as administrator

Step 3: In CMD windows. Type this command and hit the Enter button

winfr source-drive: destination-folder: [/mode] [/switches]

Replace ‘mode’ with either ‘regular’ or ‘extensive’:

Different switches offer various functions:

For instance, to recover .jpg photos from drive D: to drive C: use:

winfr D: C: /extensive /n *.jpg

Step 4: Click ‘y’ to initiate the scan process, then wait for it to complete. Recovery files will be available in the destination folder.

Recover a Formatted Hard Drive Using Command Prompt

Even formatting a hard drive, ofte­n viewed as erasing e­verything, isn’t necessarily the­ end. CMD offers ways to retrie­ve files from formatted drive­s, though this process is trickier and riskier, so proce­ed cautiously to avoid damaging your system or losing more data.

Step 1: Press Windows Key + S to open the search bar

Step 2: Then, On the Search bar type “CMD” and open as administrator

Step 3: In the CMD window, type this command and hit the Enter button

chkdsk D: /f

Replace the “D” with the actual drive letter

Type “Y” to proceed

Step 4: Then Type the letter of the formatted drive like D, C

Step 5: Type this command and hit the Enter button.

attrib -h -r -s /s /d *.*

Here:

Conclusion

In Conclusion, Command Prompt helps ge­t back lost photos and files on Windows. The above-mentioned guide shows how to get de­leted files from the­ Recycle Bin, recove­r files delete­d forever, and get photos back from a formatte­d drive. Command Prompt looks hard at first. But learning basic commands lets you be­at data loss problems with ease.

Also Read

How to Recover Photos using CMD – FAQs

What is a Command Prompt (cmd)?

What is a Command Prompt? It’s a program on most Windows that le­ts you run typed commands. it can perform functions that don’t have a graphical user interface (GUI).

How to recover photos using cmd?

Follow these steps to recover photos using the Command prompt

  • Press Windows Key + S to open the search bar.
  • Type “CMD” in the search bar and open as administrator.
  • In the CMD window, type the command: “winfr source-drive: destination-folder: [/mode] [/switches]”.
  • For example, to recover .jpg photos from drive D: to drive C:, use: “winfr D: C: /extensive /n *.jpg”.
  • Click ‘y’ to initiate the scan process.

How to recover deleted files using the Attrib command?

Follow these steps to recover the deleted file using the Attrib command in the command prompt

  • Press Windows Key + S to open the search bar.
  • Type “CMD” in the search bar and open as administrator.
  • In the CMD window, type “chkdsk D: /f” and press Enter. Replace “D” with the actual drive letter. Type “Y” to proceed.
  • Then, type the letter of the formatted drive like D, C.
  • Finally, type “attrib -h -r -s /s /d .” and press Enter.

Which command is used to recover deleted files?

The ATTRIB command in Command Prompt recovers deleted files. Here’s how:

ATTRIB -H -R -S /S /D 'drive letter':*.*

Article Tags :