Accidentally deleted files? Learn how to recover them using the Windows file recovery Recycle Bin command with step-by-step instructions! Plus, explore the best workaround to restore lost files in any situation.
Recover deleted files from Recycle Bin using Command Prompt
I got a black screen after deleting files from the WindowsApps folder. Now I’m thinking about to recover those files using the command prompt in WinRE. If feasible, what commands should I enter at the prompt?
- Question from Microsoft Support
Before diving into the solutions on how to recover deleted files from recycle bin using command prompt, let’s explore why you would even need to recover a file from Recycle Bin with CMD in the first place. Here are seven common scenarios
This part will give you 2 different ways to recover files from the Recycle Bin using commands. One way is for users whose Windows system can boot normally, and another way is for those whose Windows system cannot boot.
Sometimes, you can run the Windows system, but your Recycle Bin is not accessible. In this case, you can use commands to open the Recycle Bin and restore files from it.
Step 1. Search “cmd” in the Start menu and right-click Command Prompt to "Run as administrator" (Windows 11). Or, you can press "Win + X" and choose "Command Prompt(Admin)" to open it (Windows 10).
Step 2. Type Start Shell:RecycleBinFolder and press “Enter” on your keyboard. Then, your Recycle Bin folder will pop up.
Step 3. Select the files you want to recover and right-click on them. Then, choose “Restore” to get the files back to the original location.
You may encounter the Windows system unbootable issue and want to use the Command Prompt to recover files in WinPE. Here are the steps to help you get there.
1. Insert the Windows installation USB/DVD and boot from it.
2. On the setup screen, click “Next”, then choose “Repair your computer” at the bottom left.
3. Choose "Troubleshoot" > “Advanced options” > “Command Prompt”.
In WinRE, drive letters may be different from what they are in Windows. You can check with the commands:
diskpart
list volume
Then, you can look for your Windows partition (usually labeled with OS or familiar size), and note the drive and your external hard drive’s letters. After knowing the drive letters, exit DiskPart by entering exit.
⇒ Use xcopy command:
xcopy D:\Users\YourUsername\Documents E:\Recovery\Documents /E /H /C /I
⇒ Use robocopy command:
robocopy D:\Users\YourUsername\Documents E:\Recovery\Documents /MIR /R:1 /W:1
Enter:
robocopy D:\Users\YourUsername E:\Recovery\YourUsername /E /COPYALL /DCOPY:T
Is there an ultimate solution that can be used whether the Windows system can boot or not? Yes! MyRecover can help you realize it without effort! MyRecover is a data recovery software that can be utilized for over 500 scenarios, including permanently deleted files in the Recycle Bin, PC crash, formatting, and losing a partition. Besides, it supports 500+ devices so that you can use it to restore lost files in an internal hard drive, external hard drive, PC, SD card, or camera.
If the Windows system cannot work on your computer:
1. Download and install MyRecover to an external hard drive from another device.
2. Choose PC Crashed Recovery and choose the external hard drive. Then, click “Create” and wait for the task to be finished.
3. Insert the boot device into the crashed computer. Then, enter the BIOS system and select the device to boot the computer.
1. Scan the disk where you want to restore files from.
2. Select the desired files and click “Recover”. If you want to preview the files before recovering, you can use the MyRecover Professional Edition, which also supports restoring unlimited files instead of 500MB for free.
3. Choose the location to save the restored files. Then, wait for the task to succeed. There will be a pop-up window to notify you.
This post separately shows you 2 methods of Windows file recovery from Recycle Bin using commands in terms of different scenarios. Whether your Windows system can boot or not, you can find the specific steps for data recovery. Besides, there is a more versatile way that can restore data under any scenario – using MyRecover. It provides various functions that you can choose to deal with your data loss issue, like how to recover deleted files from Recycle Bin after emptying it, with easy operations.