What can I do if the file cannot be deleted under Win7?

  
Win7 system files can not be deleted, generally because of a "behind-the-scenes" process is calling the file. It's now easy to do with the "Resource Monitor" in Windows 7.
Now let's simulate the situation where the current 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, you can see a pop-up dialog box, prompt: the operation can not be completed, the folder or file is opened in another program.
Then we right click on the Windows 7 taskbar and select the "Start Task Manager" command, then open the "Windows7 Task Manager" dialog window, click on the "Performance" tab, then click on the tab. The "Resource Monitor" button in the page goes to the "Resource Monitor" console. Click the "CPU” tab in the console to navigate to the tab, then type “test" in the search box to the right of the associated handle'; the system will automatically search for the system associated with the test handle. process. Wait a moment, as you can see the searched process is cmd.exe.

Then we right-click the process, and then select & ldquo; End Process & rdquo; command warning dialog box to end the cmd.exe process after confirmation. Finally, delete the test folder and you can see that the folder was successfully deleted.

Copyright © Windows knowledge All Rights Reserved