How to Fix 0x80070050 Error – cmd, avoiding the error "0x80070050: The file exists" when moving into Recycle bin
Windows error fix for 0x80070050 when moving files to Recycle Bin.
📋 Table of Contents
The error '0x80070050: The file exists' occurs when attempting to delete a file using the `recycle.exe` command from CmdUtils on Windows Server 2012. This issue affects users who are trying to bulk delete files and want them to be moved to the Recycle Bin instead of permanently deleting them.
This error can be frustrating, especially when dealing with large numbers of files as in your case. However, there is a solution that can help you overcome this issue and achieve your goal.
⚠️ Common Causes
- The primary reason for this error is that the `recycle.exe` command from CmdUtils does not have an option to bypass the 'File exists' confirmation prompt. The `-f` option only works with the `del` command, which you are trying to avoid using.
- An alternative reason could be that the files being deleted may have attributes that prevent them from being moved to the Recycle Bin, such as system files or files in use by other processes.
🛠️ Step-by-Step Verified Fixes
Using the 'move' command with the /y option
- Step 1: Open a Command Prompt window and navigate to the directory containing the files you want to move.
- Step 2: Use the `move` command with the `/y` option, like this: `move *.* C:\Recycle Bin\*.* /y`. This will move all files in the current directory to the Recycle Bin without prompting for confirmation.
- Step 3: Note that this method will overwrite any existing files in the Recycle Bin with the same name as the original file.
Using a third-party tool or scripting
- Step 1: Consider using a third-party tool, such as Robocopy or PowerShell, to move the files to the Recycle Bin. These tools often have options for bypassing confirmation prompts and handling file attributes.
- Step 2: Alternatively, you can use a scripting language like Batch or PowerShell to create a script that moves the files to the Recycle Bin without prompting for confirmation.
💡 Conclusion
By using either of these methods, you should be able to move your files to the Recycle Bin without encountering the 'File exists' error. Remember to always test your solution in a non-critical environment before applying it to production data.
❓ Frequently Asked Questions
🛠️ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Fix Pc crashes shortly after launching game (rainbow six siege). Compl
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: New PC build- no signal and no clue
Fix New PC build- no signal and no clue. Complete troubleshooting guid