(Winows) Finding out which process has locked a file.

Emile van Sebille emile at fenx.com
Wed May 13 10:05:30 EDT 2009


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





More information about the Python-list mailing list