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

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Thu May 14 22:47:08 EDT 2009


En Thu, 14 May 2009 08:42:07 -0300, Lawrence D'Oliveiro escribió:
> In message <787d6072-3381-40bd-
> af20-8e1a40405033 at h23g2000vbc.googlegroups.com>, CinnamonDonkey wrote:
>
>> I have a script running which occa[s]ionally 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.
>
> Maybe there is no such process. Maybe it's just the Dimdows filesystem
> randomly returning a failure on its own. How would you know?

Oh, c'mon, that's just nonsense and doesn't help anybody.

-- 
Gabriel Genellina




More information about the Python-list mailing list