Finding which program is using another file/DLL

M

me

Hi,

Im having a few issues with finding exactly which program may be
accessing a certain file. Lets say I need to replace a DLL with a
newer version, but I need to make sure its not being accessed.

Finding out if its in use isnt a problem, but I need to find out
exactly which process is using it so I can ask the user if they would
like to end that process to replace the file or not.

Anyone any ideas?

Regards, Daniel.
 
G

Guest

There is a free ware program on the web called ForceDel which will delete
files locked by other apps. It searches the windows handle list, finds the
handles to the file, shows you what app has the handle, closes it and deletes
the file. I know this isnt exactly what you want to do but the good news is
its open source. Minor hitch is that its C++ but it should show you the
windows functions to call to perform the tasks and would be a good starter
for ten.

http://www.codeguru.com/Cpp/W-P/files/fileio/article.php/c1287/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top