However, you still have another choice: using the Command Prompt.
This tool provides you with a command-line interface to interact with the system.
This post explores how to maximize the data recovery capabilities of the Command Prompt.

you might use different command lines to rescue your data in different cases.
hey keep reading to recover your lost data.
Therefore, its necessary to teach you how to recover files using Command Prompt in some popular cases.
![]()
Solution 1: Recover Deleted Filed with Command Prompt
Thewinfrcommand line is widely used to recover lost data.
It can be used to restore files like PNG, Office files, ZIP, and so on.
Step 1: PressWin + Rto kick off the run window.

Step 2: Typecmdand pressShift + Ctrl + Enterto run Command Prompt as administrator.
Step 3: Typewinfr source-drive: destination-folder: [/mode] [/switches].
Step 5: Wait for the process to end.

you’ve got the option to find the recovery files in the destination folder.
They also work well in rescuing files from formatted hard drives.
Step 1: PressWin + Rto launch the Run window.
![]()
Step 3: Typechkdsk x: /fand hit Enter.
just replacexwith thedrive letterof the formatted drive.
Step 4: Typeyand hitEnterto continue.

Step 5: jot down the drive letter of the formatted drive and hitEnter.
Step 6: bang out the command:attrib -h -r -s /s /d *.
What do these parameters in the attrib command mean?

How to fix access denied when running attrib command?
Step one: verify you are running Command Prompt as administrator.
Step two: find out if there is any file in use.

Step three:peek if you have enough permissions.
Step four: yo give a shot to run thechkdsk /fcommand on the target drive from aDOSCommand Prompt.
However, what if the hard disk is an internal drive that is necessary for booting the system?
![]()
How to recover data from a hard disk using Command Prompt in this case?
How to Enter Safe Mode in Windows 10
Step 1: Click theStartmenu and selectPower.
Step 2: Press and hold theShiftkey.
Step 3: tap on theRestartchoice.
Step 4: Wait for your gear to enter the Choose an option window.
Step 5: Navigate toTroubleshoot>Advanced options>Startup prefs>Restart.
Step 6: In the Startup tweaks window, pressF6to enter Safe Mode with Command Prompt.
Then, you could use the chkdsk and attrib commands to recover your files.
Besides, a more convenient way to recover files under various situations is using MiniTool Power Data Recovery.
Professional data recovery software can restore your files safely, like MiniTool Power Data Recovery.
The free edition allows you to restore up to 1GB of files.
you might tryMiniTool Power Data Recovery freefirst to scan and check your important files.
Step 1: Download and install MiniTool Power Data Recovery.
Step 2: Launch the software.
Step 3: snag the partition that contains the deleted files and clickScan.
Step 4: like wait patiently until the scan process ends.
Then, you’ve got the option to look through the result page to find your wanted files.
you could snag the corresponding path to find the wanted files.
Step 5: opt for files you want to recover and click theSavebutton.
Step 6: Choose a save path in the popup window and clickOK.
Now, read this post to find answers.
MiniTool provides Personal and Business editions.
you’re able to choose one based on your needs.
Last Words
The Command Prompt is a powerful tool that is built in Windows systems.
It is able to help you manage flash drive/hard disk (format partition, deleted partition, etc.)
In addition, it can be used to recover files under various situations.
This post tells different command lines to help you recover files and repair some data storage devices.
Feel free to share your questions with us via[email protected].