How do I delete a file that is being occupied under Windows7?
Windows7 How do you know a file is occupied by who?
How do I find a registry key that's not going to change me?
Please don't rush to recommend third party software to me, Windows7 new territory inside I can make my own decisions, we look down-
When you delete a file or folder, especially the temp temporary folder, you may experience the following error message "File is in use" or "the operation cannot be completed because the file is open in XXX." (Please note: XXX represents the program that it opens.) )
To successfully delete these files, first find out which processes have called them, and then close the related application. Compared to previous operating systems, the "File in Use" dialog box for Windows 7 has been improved, typically it lists what programs are in the calling file (as shown in the red box above).
However, most of the time, the system still cannot list all the programs that call the file, so the file cannot be deleted smoothly. At this point, Windows 7 Resource Monitor--a small, but useful, tool--works.
Open the Resource Monitor. In the Start search box, type Resource monitor and press ENTER to open.
If you are prompted to enter an administrator password or confirm, type the password or provide confirmation.
In the Resource Monitor dialog box, switch to the CPU tab. Click the small arrow to the right of the associated handle bar to expand it. Enter a filename in the search field (if the filename is longer, enter a partial filename), and then click Enter. All of the files associated with a file are now listed in the image column.
Select the process that calls the file, right-click the mouse, and click End Process.
You can now successfully delete the related files/folders.
Tip: Using the associated handle search, we can also query the registry key value of the corresponding process! ^^
(for reference only, not detailed introduction)
Windows Vista and Windows XP systems do not have their own resource monitors to implement similar queries. Instead, you can download a gadget Process Explorer and use it when you need it.