Cleverly delete the file

  
in Windows 7

In Windows, when the file is deleted, the system prompts "is being used by another program" and cannot be deleted. This situation is often encountered. This is because a background 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". In fact, it's easy to use its "resource monitor" in Windows 7.

The following is a simulation of the situation in which the reproduction file cannot be deleted. 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, a dialog box will pop up, prompting: the operation could not be completed, and the folder or file is opened in another program.

Next we can do this:

1. Right click - Windows 7 taskbar - Start Task Manager - Performance - Resource Monitor

2. Click in the console The "CPU" tab is located under the tab

3. Enter "test" in the search box to the right of "Associated handle", and the system will automatically search for the system process associated with the test handle. Br>

4. You can see that the searched process is cmd.exe (which confirms the situation simulated above). The IT knowledge base reminds everyone that this is exactly the cmd.exe process is calling the test folder, which caused the failure to delete the folder. 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, you can see that the folder was successfully deleted

Copyright © Windows knowledge All Rights Reserved