Forgive the riddle-like question, but that's what I'm experiencing (I think). What I'm trying to do is delete a specific file. When I originally tried to delete it, Explorer tells me it's in use by System. What I did was to deny Full Control to NT AUTHORITY\SYSTEM (the "user" under which the process "System" was running, as told by Process Explorer) on the file, and restart the machine.
After restarting, I go to delete the file and get a File In Use dialogue saying "The action can't be completed because the file is open in another program". I return to the ever useful Process Explorer to search for that file name (my default method for finding what process has locked a file) but when searching for Handle or DLL substring, Process Explorer returns 0 results, as if the file is not in use by any process at all. I'm running Process Explorer as Administrator by the way. I was even able to rename the file and restart again, but still cannot delete it.
Can anyone elighten me as to how this happens? How can I find out what process is holding on to that file, so I can kill it and delete the damned thing?
Edit: Run5k suggested this a duplicate of this question, and although it provides a solution to my specific problem, I would like an answer explaining why I can't find out what process is using the file I wish to delete.