On 5/13/2009 2:20 AM CinnamonDonkey said...
Hi all,

Does anyone know how I can programatically find out which process
(resolved to human friendly string, i.e. executable) has a lock on a
file.

I have a script running which occassionally fails because it is trying
to delete a file in use by another process. When this happens I want
it to log which process has the lock.


You might take a look at http://ccollomb.free.fr/unlocker/ -- I've not used the command line options although they are available...

Emile


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to