How to find what program is using a file.

Associate
Joined
19 Nov 2008
Posts
1,579
I have an empty folder I want to delete, but when I try and delete it I get an error message saying this file is in use by a program. I can't find what program could possibly be using it and therefore can't delete the folder. Is there anyway I can find out what is using it?
 
Well I tried ProcessExp but couldn't find anything. Used unlocked and apparently this empty folder is being used by Explorer.Exe :S
 
with procexp do..

Find
Find Handle or DLL...

then put in the full path to the folder and search. the 2nd column gives you the Process ID (PID) of what ever is accessing it. Then on the main screen of procexp you can find the process with that PID and kill it off.

edit:
or click the process and then at the bottom you can find the file handle, right click and close it.
 
Last edited:
Back
Top Bottom