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

2009-05-13 Thread CinnamonDonkey
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

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

2009-05-13 Thread Emile van Sebille
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

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

2009-05-13 Thread Tim Golden
CinnamonDonkey wrote: 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

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

2009-05-13 Thread Dave Angel
CinnamonDonkey wrote: 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