By Lora / Last update May 7, 2022

User case of “Windows File Recovery there was an error parsing your command” error

there-was-an-error-parsing-your-command

Microsoft released a file recovery tool in 2020 – Windows File Recovery. It is available for all Windows 10 & above users in Microsoft Store.

According to Microsoft, Windows File Recovery can recover several types of lost files from local storage devices, including photos, videos, docs, and more.

Despite so many amazing features, it is quite unfriendly for common users who are not familiar with commands, because it is a command-line app without a graphical user interface.

So, quite a bunch of users will meet some errors when using it. One particular is “Windows File Recovery there was an error parsing your command”.

   
   
   
       

I accidentally deleted files from a folder on my Desktop. I'm trying to use the Windows 10 File Recovery but keep getting errors. The folder is LAPTOP 2019 and it was on my Desktop, and the recovery file can be on the D drive. The command is:

winfr C: D: /regular /n \desktop\laptop 2019\

but all it says is "There was an error parsing your command. What should I fix?

       

- Question from Reddit

   

The user in this case was confused by the complex syntax that Windows File Recovery is using. There were some mistakes in the command he/she used.

If you have met the same error, then don’t worry, this article aims to help you fix this question.

How to fix “Windows File Recovery there was an error parsing your command”?

"There was an error parsing your command“ means that errors occur when the software tries to analyze the command you use. When meeting this error, it is very likely to have something to do with the syntax. You could check your syntax following the instructions and hints here.

What’s more, a good Windows File Recovery alternative will be offered to help you get rid of the commands if you find them hard to handle.

To learn the commands, recovery modes, and switches in detail, please refer to “How to use Windows File Recovery”.

Solution 1. Check your command line syntax

Pay attention to the syntax, the structure, the spelling, and the punctuations. The complete correct Windows File Recovery command format is:

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

Part 1. Source drive & destination drive

One of the noteworthy points in Windows File Recovery command syntax is the source drive and target drive you chose.

To make it clear, the source drive is the drive where you have lost files, while the target drive is a place where you choose to store the recovered files after processing.

Now check if you have met these requirements.

Point 1. The source drive and target drive should be different.

Point 2. Use a valid drive letter. Or you may meet the error "Windows File Recovery failed to create destination folder".

Point 3. Both the source and target drive should be followed by a colon – e.g., C drive goes like C:

Point 4. There is a space between the source drive and the destination drive – e.g., if you want to recover files from C drive to D drive, then it goes like C: D:

Part 2. Slashes and backslashes

Slashes and backslashes are marks mainly used in computing. In Windows File Recovery commands, slash / is used to work with recovery modes and switches, while backslash \ is used to denote a directory, e.g., a folder under C: drive named DataRecovery should be:

\Users\username\DataRecovery\

So there are some points you need to pay attention to.

Point 1. Don’t forget the slash / when using a recovery mode or switch.

Point 2. When denoting a recovery mode or a switch, there is no space between the slash / and the recovery mode or switch, e.g., /regular or /n

Point 3. There is a space between the recovery mode pattern & the switch pattern, e.g., /extensive /n

Point 4. When denoting a folder, use backslashes, and don’t forget to put a backslash at the end of the folder name, e.g., /n \foldername\

Part 3. Directory

Denoting the directory of the files, i.e., targeting the files is the most difficult part. On one hand, users sometimes are prone to fail in targeting the correct location of the files; on the other hand, the spelling of the file directory is required to be very precise, otherwise, the system will not be able to find the specified path.

Point 1. When targeting the file path, please offer the original location of the files, i.e., where the file was before deleting/missing.

Point 2. To target the exact file path, go to the folder and copy the file path in the location bar.

file-path

Point 3. If your deleted files were on the desktop, the correct file path is: C:\Users\username\Desktop\foldername\

Point 4. If there are spaces in the file/folder name, please put quotation marks at the ends of the file/folder. E.g., “\Program Files\Clash for Windows\”

Let’s put it in the command line:

winfr D: E: /extensive /n “\Program Files\Clash for Windows\resources.pak”

Solution 2. Use a Windows File Recovery alternative – WinfrGUI

Still finding it difficult to get rid of the error “Windows File Recovery there was an error parsing your command”?

Rather than struggling against the complex commands and parameters, we always prefer to save our labor, isn’t it? The Windows File Recovery alternative - WinfrGUI could save you from the commands.

WinfrGUI, a free & easy file recovery tool, can recover deleted/lost office/media/compressed files from HDD/SSD/USB/SD card, etc.

Download Freeware Win 10 2004 and above
Secure Download
Notes:✎...
Fully invoking Windows File Recovery's function, there is no guarantee of a 100% success rate in file recovery. 
The same as Windows File Recovery, this tool only applies to Windows 10 2004 and above.
To avoid overwriting, please minimize using the drive which has lost files after deleting.
The source drive and target drive could not be the same.
Quick Scan only applies to NTFS drives, if your drive is non-NTFS, use Deep Scan instead.

Step 1. Install and run WinfrGUI > select the drive where you have deleted files > choose another place to save the recovered files.

select-a-partition-to-scan

Step 2. Choose a scanning method. The scanning duration depends on the size of the disk, please wait in patience.

choose-scan-mode-to-recover

Step 3. Then click “Start Recovery” to get all deleted files back effortlessly.

click-start-recovery

What’s more, you could also utilize this freeware to get permanently deleted files back in Windows 10/11.

How to recover deleted files easily and keep the original format?

Since Windows File Recovery and its alternative WinfrGUI cannot ensure a high recovery rate in file recovery, and they can't keep your file's original format after recovery, we suggest you choose a professional Windows data rescue tool.

Here AOMEI Data Recovery for Windows will be recommended.

As a utility supported by a sophisticated team with 10+ years of experience, it has an advanced in-built scanning method, which can scan the hard disks for deleted data easily.

Take a look at its highlights.

★Highlights:
Trustworthy. Restore deleted files and keep the original format/path/name.
Easy-to-operate. Within only 3 steps, you could get deleted data back.
Efficient. Restore over 200 types of data.
Comprehensive. Apply to all-inclusive data loss scenarios. 

Don't hesitate to download AOMEI Data Recovery for Windows to enjoy its features.

Download SoftwareWin 11/10/8/7/Server
Secure Download

Step 1. Launch the program > select a location to start > Start Scan.

select-a-partition-to-scan

Step 2.  During the process, you could directly recover the files it detected, or also, you could wait for the complete scanning result.

scan-lost-data

Step 3. Select the data you need > Recover x files.

recover-lost-data

Also, this tool can recover deleted files from Recycle Bin.

Related suggestions: keep data & file safe

The error “Windows File Recovery there was an error parsing your command” is well-settled in this article with several tips and a good Windows data recovery utility - AOMEI Data Recovery for Windows.

Data/file loss can be quite unaffordable for users, no matter who you are, individual or company, losing files and data is the last thing one wants to see.

To escape from data loss, taking some actions to keep your data safe and sound is a good choice.

  • Avoid visiting/using malware and dangerous sites in case files get attacked and corrupted.
  • Use Antivirus programs to scan and protect your data.
  • Save the file from time to time when editing.
  • Keep your files backed up properly in different places, e.g., one stored on an external hard drive, one saved on the cloud, and one kept on your computer.

To back up data easily, you might as well utilize the professional backup program – AOMEI Backupper. The amazing feature “File Backup”, “Disk Backup”, and “System Backup” can help you.