Have you ever encountered a situation where you have already closed a file or a program that is using it, but when you delete it, Windows resource manager still thinks it is in use? This is common for video files that are being played back by WindowsMediaPlayer,
Have you ever encountered a situation where you have already closed a file or a program that is using it, but when you delete it, Windows resource manager still thinks it is in use? This is very common for video files being played back by Windows Media Player, but other files may have the same problem. The reason is that the file is running in the background or is not properly closed. Sometimes you may even encounter such troubles on files that are not used for many years! Fortunately, there are several ways to kill it.
Have you closed the program that uses it?
Let's start from the most obvious point. Did you just use a program to open the file and forget to close it? If you close the file but the program is still running, turn off the program and try again.
Have you tried restarting?
Restarting is almost a treasure, and it is likely to help you solve this problem! Despite the hassle of doing so, it does not require any skills, nor you need to play around with task manager or third-party tools. Restart also clears your memory, which may solve other problems. So, if you don't want to bother yourself with the cause, try restarting!
If you have already tried to restart and it still does not work, skip the following steps and directly go to a third-party tool.
Close related programs through Task Manager
The reason for the restart is that the system starts completely from the beginning, so all processes currently running in the Task Manager are disabled. If you do not restart, you can also try to manually end the process or program that hijacked your files.
The most convenient way to start the task manager is to press CTRL + SHIFT + ESC. Alternatively, when Windows is in any status, right-click the taskbar or press CTRL + ALT + DEL, select the task manager, and switch to the process tab, find the program for the file you want to delete. For example, if you are watching a video, find Windows Media Player.
Once you find the culprit, right-click it and select "end process tree ". In this way, all instances of the program can be closed. some programs, such as Chrome, run multiple instances. If you cannot find the program, have you tried restarting it?
Unlock a file with a third-party tool
Sometimes, this damn file is always locked, or even not. You can unlock the resource manager and delete it using the command line. Wait ?! If you can use some tools to flat it, why is it so troublesome? One of the options is Unlocker. During installation, make sure that you choose custom installation so that you can avoid the annoying software bundle, which is an "Iminent toolbar" for Unlocker ".
Unlocker adds himself to the Context Menu (or right-click Menu) of Windows. Right-click the file to be deleted and select Unlocker from the menu. In this way, the file is loaded into the Unlocker. Now you can select an operation from the drop-down menu-copy, move, rename, and delete, but this is not necessary. Click "Kill Process" or "Unlock/Unlock All ). When the process is killed, the corresponding application is also disabled. In this way, no matter what problems you are struggling with, you should have solved them.
You can also use Microsoft's Process Explorer. Another tool used to delete locked files is FilExile. This tool does not add itself to the context menu. Instead, you need to select the file to be unlocked. FilExile can also be used to delete files that cannot be deleted because the path is too long.
Start to safe mode
If all the methods above are useless, or you are not interested in installing a software to solve the problem, the ultimate killer we can reveal is to restart to the security mode. The file you want to delete may be automatically loaded by an application. Unlocker should still work in this case, but if it involves malware or you do not want to use third-party tools, you can try this alternative.
If you are running Windows 7 or earlier, restart your computer and press F8 until Advanced Startup options appear.
Windows 8 users need to press the combination key Windows + I to open the sidebar, the electrode power button, and then press SHIFT to restart. Then, operate in the order of Troubleshoot> Advance Options> Startup Settings, and then select "allow security mode"
Once you start safe mode, find the file to be deleted and try your luck!
Is the problem solved?
Have you successfully deleted the locked file? What file is it, and what method do you use? Please share your solution with us! If none of the methods work, consult our MakeUseOf Answers team for more suggestions.
Translated by Tina Sieber: Geeks fan-gossip lovers