Windows File Recovery: Complete Guide to Deleted Files
If you just lost a file on Windows, stop writing to that drive and try Windows File Recovery before new data replaces what you want back. It can recover recently deleted files, files removed from the Recycle Bin, and some data from formatted or damaged drives. It cannot bring back data that has been overwritten, and on SSDs it may fail if TRIM has already cleared the blocks. The safest move is to recover to a different drive and check the results before you assume the file is gone.
Can Windows File Recovery actually get your file back?
Windows File Recovery is Microsoft’s recovery tool for files that were deleted or lost from local drives. It works best when the file’s data still exists on the disk and only the file system record, or part of it, is missing. That means it can often help after an accidental delete, an emptied Recycle Bin, a quick format, or a damaged file system.
It cannot recover data that has already been overwritten by new files. If Windows has reused the same disk space, the old content is gone. That is the main limit to understand before you start.
SSDs are a special case. Because many SSDs use TRIM, deleted blocks may be cleared quickly, which can make recovery impossible even if the file was deleted only recently. The same applies if the drive was used normally after deletion and new data replaced the old blocks.
A simple way to think about it: deleted does not always mean erased, but overwritten usually means gone.
What you should do before you start
- Stop saving, downloading, installing, or copying anything to the affected drive.
- If the missing file was on
C:, avoid usingC:for anything new until you finish recovery. - Have a different drive ready for recovered files, such as
D:or an external USB drive. - Make sure that destination drive has enough free space for the recovered data.
- If the missing file came from a USB drive or SD card, leave it connected only for the recovery attempt.
The one rule that matters most is this: do not write new data to the source drive. Every new file, update, browser cache, or download can replace the space where the missing file used to live.
The safest place to save recovered files is a different physical drive. Saving back to the same drive can overwrite other recoverable data and reduce your chances of getting the rest back.
How Windows File Recovery works
The tool scans a source drive for file records and file signatures, then copies whatever it can find to a destination folder on another drive. The source drive is where the file was lost. The destination drive is where the recovered copy is saved.
In some cases, especially with Extensive mode, the tool looks for file signatures instead of relying only on normal file system records. That helps when the file system is damaged or missing, but it also means the recovered file may not keep its original name, folder path, or full structure.
That is normal. If Windows File Recovery cannot fully reconstruct the original file system metadata, it may save files into folders it creates during recovery, often with generic names. The important part is checking the file contents, not just the file name.
Use a different destination drive whenever you can. If the source and destination are the same, you raise the chance of overwriting data you still might have recovered.
Install Windows File Recovery and open the command line
Prerequisites
- Windows 10 or Windows 11.
- Access to the Microsoft Store.
- A different destination drive, such as
D:or an external USB drive. - Permission to open Command Prompt or Windows Terminal, and administrator rights if you need to recover from protected folders or a system drive.
Steps
- Open the Microsoft Store.
- Search for
Windows File Recovery. - Install the app from Microsoft.
- Open the Start menu and launch
Command PromptorWindows Terminal. - If you want to recover files from a protected folder or a system drive, run the terminal as administrator.
The tool is command-line based. That sounds less friendly than a normal app, but it also means the recovery target and source are very explicit, which helps avoid mistakes.
Once the terminal is open, you can type recovery commands directly. The commands below use winfr, which is the tool’s command name.
The command you’ll use most often
The basic pattern is:
winfr source-drive: destination-drive: /mode /switchesA simple example for recovering JPG files from C: to D: looks like this:
winfr C: D: /regular /n *.jpgHere is what each part means:
winfrstarts Windows File Recovery.C:is the source drive, where the file was lost.D:is the destination drive, where recovered files will be saved./regulartells the tool to use the lighter recovery mode./n *.jpgnarrows the search to JPG files.
If you want to recover into a folder on the destination drive, the tool will create or use a recovery folder there. You do not point it back to the source location.
If the command looks long, that is normal. The benefit is that you can make the search much narrower, which usually gives better results and less clutter.
When to use Regular mode and when to use Extensive mode
Use Regular mode first when the file was deleted recently and the drive’s file system still looks healthy. It works best for straightforward deletions, especially on NTFS drives, where the file record may still be recoverable.
Use Extensive mode when the easy path is unlikely to work. That includes formatted drives, damaged file systems, emptied Recycle Bin cases where Regular mode finds nothing, or situations where the folder structure is gone.
A practical rule:
- Recently deleted document, photo, or video on a healthy drive: start with
Regular. - Drive was formatted, partition changed, or file system is damaged: use
Extensive. - Deleted from an SSD: try
Regularfirst if it was very recent, but be ready forExtensiveto fail if TRIM already cleared the space.
Example commands:
winfr C: D: /regular /n *.docxwinfr C: D: /extensive /n *.docxIf Regular mode finds nothing, that does not automatically mean the file is gone. It often means you need to switch to Extensive mode or narrow the search better.
How to recover files from a specific folder or file type
Targeting a folder or file type helps the tool search less and waste less time. If you know where the file used to live, use that path. If you only know the type, filter by extension.
Recover a lost folder from Documents:
winfr C: D: /regular /n \Users\YourName\Documents\Recover Word documents only:
winfr C: D: /regular /n *.docxRecover photos from a specific Pictures folder:
winfr C: D: /regular /n \Users\YourName\Pictures\Recover videos:
winfr C: D: /extensive /n *.mp4 /n *.movYou can combine filters when needed. If you are not sure of the exact folder name, start with the file type. If you are not sure of the file type, start with the folder path. The narrower the search, the better your odds of getting useful results instead of a pile of unrelated files.
What to do if the drive was formatted or the recycle bin is empty
A formatted drive or emptied Recycle Bin usually means the file system metadata is gone or partly damaged. In that situation, Regular mode may not have enough record data to work with. Extensive mode is the better starting point because it can search by file signatures.
Try a broad type-based search first, then narrow it only if the results are too noisy. For example:
winfr C: D: /extensive /n *.jpg /n *.png /n *.heicIf the drive was formatted, do not copy anything onto it, even as a test. A new install, a few downloads, or even normal browsing can overwrite the space you want to recover.
For folders with mixed content, you may need to run separate recovery commands for documents, photos, and videos. That is often better than one huge search, because it makes it easier to spot what was recovered and what still needs another pass.
If Extensive mode still finds nothing, the file may have been overwritten, TRIM may have cleared it, or the damage may be beyond what file-based recovery can reconstruct.
How to tell whether the recovery worked
Windows File Recovery saves recovered files to the destination drive you choose, usually inside a recovery folder it creates there. After the command finishes, open that folder and check what was restored.
Look for three things:
- The file opens normally.
- The content is complete, not partly blank or corrupted.
- The file type matches what you expected.
If a photo opens but looks damaged, or a document opens with missing text, the recovery was only partial. That usually means the file was fragmented, overwritten, or only partly recoverable.
If the file names are generic or the folder structure is missing, that can still count as a successful recovery if the content is usable. The name matters less than whether the data is intact.
If you recovered several files, sort them by type and check the most important ones first. That way you can decide quickly whether another recovery pass is worth trying.
Completion
You know the recovery worked when the file appears in the destination drive, opens without errors, and the contents are usable. If the file is only partly readable, treat that as a partial recovery and decide whether a narrower second pass is worth trying.
What Windows File Recovery does not fix
Windows File Recovery does not restore files that have been overwritten. It also cannot repair a physically failing drive, recover data from a drive Windows cannot read at all in a stable way, or undo encryption problems if the data is locked behind credentials you do not have.
If the drive makes clicking, grinding, or repeated disconnecting sounds, stop and avoid repeated recovery attempts. That kind of hardware failure can get worse fast.
If the file was on a BitLocker-protected drive or another encrypted volume, you may need the right unlock key before any recovery attempt makes sense. If the data is damaged beyond what file recovery can read, a backup is the better next step. If there is no backup and the data matters a lot, a professional data recovery service may be the only realistic option.
The key point is that this tool works on recoverable disk data, not on every kind of loss.
Common mistakes that make recovery fail
The most common mistake is saving recovered files back to the same drive you are trying to recover from. That can overwrite data that has not been copied yet.
Other avoidable errors include:
- Using the wrong drive letter, especially after plugging in external drives.
- Waiting too long and continuing to use the computer normally.
- Running a broad search when a narrow folder or file-type search would have been better.
- Expecting SSD recovery to work after TRIM has already cleared the blocks.
- Forgetting that a formatted drive may need Extensive mode, not Regular mode.
If Windows File Recovery finds nothing, do not keep hammering the same drive with random commands. Switch modes, narrow the search, and think about what changed after the file disappeared. The fewer new writes on the source drive, the better your odds.
If you still have not recovered the file, your next step is usually a backup check, a second drive scan, or a recovery service if the data is irreplaceable.
Conclusion
If the missing file matters, start with the smallest possible recovery attempt and save the result somewhere else. Use Regular mode for a recent delete, switch to Extensive mode for a formatted or damaged drive, and avoid writing anything new to the source drive until you are done. If the tool finds the file, open it right away and check that it is usable. If it finds nothing, the likely reasons are overwriting, TRIM on an SSD, or damage that file-based recovery can’t repair.
Frequently Asked Questions
Can Windows File Recovery restore files from an SSD?
Sometimes, but SSD recovery is less reliable than recovery from a spinning hard drive. If TRIM has already cleared the deleted blocks, the file may be unrecoverable even if it was deleted recently.
Why did Windows File Recovery recover files with weird names?
That usually happens when the tool has to rebuild files from signatures instead of full file system records. The content may still be fine even if the original name and folder path are lost.
Should I recover files to the same drive?
No. Use a different drive so you do not overwrite data that might still be recoverable on the source drive.
What if Windows File Recovery finds nothing?
Try the other mode, narrow the search by file type or folder, and consider whether the file may have been overwritten or cleared by TRIM. If the drive is failing, stop and use a backup or recovery service next.