Re: quick way to find out if a file is in use by windows?

2010-09-10 Thread jurriaan
> However, the workaround was missing a break from the loop, if the > sharing violation persists. I fixed that in CVS. > I do love open source software like this - fixes on a friday night. I'm not sure if I'm ready to use CVS on a production system, but thanks a lot! Kind regards, Jurriaan --

RE: quick way to find out if a file is in use by windows?

2010-09-10 Thread Conway, Timothy
> Is there any way to detect if a file is in use by windows before > executing 'mv' (I really, really hope I don't have to use the > 'handle.exe' utility, which takes seconds for each file...)? fuser 73, Tim Conway JBS USA | 1770 Promontory Ci | Greeley, CO 80634| USA Direct: 970-506-7998 | F

Re: quick way to find out if a file is in use by windows?

2010-09-10 Thread Corinna Vinschen
On Sep 10 21:22, jurri...@rivierenland.xs4all.nl wrote: > > mv does not timeout. The underlying unlink function checks if the file > > is in use and, if so, moves the file to the bin and sets the delete > > disposition so it will be deleted after the last process closes its > > handle to the file.

Re: quick way to find out if a file is in use by windows?

2010-09-10 Thread Corinna Vinschen
On Sep 10 11:46, Jurriaan wrote: > I use the mv command to clean up some directories filled with temporary > files. These may or may not be in use by windows. > > I used to detect them being in use by windows by mv failing. > > Now, mv is simply taking forever. > > I'm using cygwin 1.7.7(0.230/5