File Recovery Hero/Guides/Platforms

Platforms · Windows drive

Command Prompt file recovery: safe checks and limits

Can Command Prompt recover deleted files?

Short answer

Not by itself: Command Prompt has no undelete command. Attrib or dir can reveal files that are only hidden, and Microsoft's separately installed Windows File Recovery tool, winfr, runs there. Avoid chkdsk /f on an irreplaceable source, because repairs rewrite file-system metadata; create an image of the drive first.

The situation

You want to use built-in commands instead of installing another program.

The Command Prompt can bring back files that are only hidden, and Microsoft's own command-line tool can try to read deleted ones, but neither is a safe first move on a drive you care about. Begin with checks that change nothing, and put every result on a second drive. A graphical read-only scan is the gentler second step.

01 / Diagnose

Work out what actually disappeared

Many missing files are not deleted at all: a hidden or system attribute set by a fault or by malware makes folders look empty, which the attrib command can reveal. Others are deleted, and then the question is how much new data landed on the space. Commands that repair the file system write to the same drive, so they can make a recoverable case worse.

Commands can locate hidden files or inspect a volume, but repair commands may modify file-system metadata. They are not automatically safe for an irreplaceable source.

Check the last known path, trash and backups without writing to the original device.

02 / Protect the source

Preserve the best recovery chance

  1. 1

    Open the Command Prompt and use dir with the show-hidden option on the drive to see whether the files are only hidden before you assume they are deleted.

  2. 2

    If attributes are the cause, remove the hidden and system flags with attrib, and copy what appears to a different drive straight away.

  3. 3

    For files that really are deleted, run a command-line recovery tool only with a separate destination drive, never the drive you are reading.

  4. 4

    If the drive is not recognised or shows as RAW, stop typing commands and read it with a read-only scan or an image instead.

Avoid this now

Do not run chkdsk with the fix option on a drive whose files you still want. It rewrites file-system structures and may delete orphaned entries that a scan could have used. Do not format the volume, and do not install a recovery tool onto it. Always write recovered data to another physical drive.

03 / Choose the method

Match the tool to the source

For stable, readable exFAT, NTFS and FAT16/FAT32 or uncompressed IMG, DD, RAW and BIN images.

Unconfirmed exports are marked .UNVERIFIED.

File Recovery Hero is a graphical, read-only program and not a command-line tool. It reads exFAT, NTFS and FAT16/FAT32 media and uncompressed images for photos, video and audio. The Windows app lists exFAT drives only, so an NTFS drive is opened as an image. Overwritten data cannot be recovered by any method.

Raw volumes, MBR/GPT and full product limits

04 / Verify

Check the recovered content, not just its name

After each command, list the folder again and compare counts and sizes with what you remember. Open copied files completely, and note that a restored name without usable content points to space that was reused. If a file is shown with zero bytes, its data is not reachable from that entry.

Keep the source until two verified copies exist. One working preview is not enough.

Sources and technical references

FAQ

Questions about this recovery case

Can Windows drive be recovered in this situation?+

The Command Prompt can bring back files that are only hidden, and Microsoft's own command-line tool can try to read deleted ones, but neither is a safe first move on a drive you care about. Begin with checks that change nothing, and put every result on a second drive. A graphical read-only scan is the gentler second step. The result still depends on what remains readable on the source.

What should I avoid before scanning?+

Do not run chkdsk with the fix option on a drive whose files you still want.

Does scanning write to my memory card?+

Your memory card is only read. Nothing is saved to it.

How do I know whether the result is complete?+

After each command, list the folder again and compare counts and sizes with what you remember.

Stop! Your files aregone.Back!

Scan for free first, then decide.

DownloadBuy license