Unable to delete files, use Windows 7 to solve easily

  
        Recently I found a problem when I visited the forum. I feel that this problem is a problem that Win7 users often encounter. I will transfer this question to share it with everyone. Some netizens ask: Sometimes, I want to delete a file or file. when the clip is usually encountered "operation can not be completed, the file is being run another program" can not be deleted, quit the program, it still can not be deleted at this time how to do it?

files can not be deleted, We often encounter such a situation. This is because a "behind-the-scenes" process is calling the file, and only the end of the process can be deleted. So how do you locate the process? Usually, we need to use third-party tools such as "Ice Blade". However, using its "Resource Monitor" in Windows 7 is easy.

Let's special analog reproduction file can not be deleted situation. Create a folder called test on the D drive, then run a command prompt (cmd) and locate the command path to the folder directory. At this point, we delete the test folder, you can see the dialog box shown in Figure 1, prompting: the operation can not be completed, the folder or file is opened in another program.

then we can do this: Right-click the taskbar Windows7 select "Start Task Manager" command, click the "Performance" tab in the console window "Windows Task Manager" to open, and then click click The Resource Monitor button in this tab goes to the Resource Monitor console. Click the "CPU" tab in the console to navigate to the tab, then enter "test" in the search box to the right of "Associated Handles", and the system will automatically search for the system process associated with the test handle.

Wait a moment, you can see the search process is cmd.exe (simulation confirms the above case). This shows that it is the cmd.exe process that is calling the test folder, which causes the deletion of the folder to fail. Right-click the process and select the End Process command to pop up a warning dialog box to confirm the cmd.exe process. Finally, delete the test folder and you can see that the folder was successfully deleted. Although the above is a simulated scene, it is exactly the same as the real scene. As long as you flexibly apply such problems, it will not bother you.

There are also two ways to resolve them, learn together under the bar

Method 1: Restart your computer to delete

restart the computer in safe mode when, according to F8 enters safe mode. In safe mode, the system does not actively run other programs, which is equivalent to an undisturbed environment. In this way, the file will not be occupied by other programs or systems, and the file or program can be deleted directly. (This method is best)

Method Two: Remove

in the WinPE into WinPE, but also with almost into safe mode, delete it.
Copyright © Windows knowledge All Rights Reserved