gogoWebsite

Solution for "The operation could not be completed because the folder or file was already opened in another program"

Updated to 1 hour ago

In windows system, we often encounter such a problem: delete a certain file or folder, be reminded: the operation can not be completed, because the folder or file in it has been opened in another program.在这里插入图片描述

At this time we usually first check if there is really a program or file open and not closed, but we can't find the program on the desktop or in the task manager. This problem has been bothering me for a long time, thinking that the next reboot, and then delete, should be able to, and did not delve into this problem.
This problem, however, does have a solution, and you don't have to wait until the next time you restart your computer to delete it.
The solution is as follows:
1, open the task manager, switch to the performance tab, and then click on the resource monitor below, as shown in the following figure:

在这里插入图片描述

2, in the open interface in the middle of the search location, enter the file (folder) name keywords can not be deleted:

在这里插入图片描述

3, will search out some of the relevant processes, to find the files we need to delete the folder corresponding to the process, and then right-click to end the task, after the end, will produce a new problem, desktop icons and menu bar icons all disappeared, the mouse can not be right-click.

在这里插入图片描述

The solution is to go back to Task Manager, select File -> New Task: type explorer and enter, problem solved.

在这里插入图片描述

Next, delete the file or folder we need to delete again and it will be successfully deleted.