File Locking under Windows - a solution ?

Michael Pickard mpickard at
Wed Sep 6 12:15:02 GMT 2006

> -----Original Message-----
> From: Stuart Halliday [mailto:StuartH at]
> Sent: 05 September 2006 15:25
> To: rsync at
> Subject: Re: File Locking under Windows - a solution ?
> > Does anyone know of a way this locking can be overridden ? - is it
> > possible to 'force' updates ? it is important that all live servers
> > have identical filesystems.
> I doubt it.
> Windows Filing system doesn't work that way.

Thought as much. We are planning to move to Linux across the board, but
these things take time...

> You can buy open file managers. But these are designed to allow a file
> that is opened by another application to be copied not replaced.
> Are you talking html/bitmap files or data base files?

Mostly .html and images, with
No database files.

> Are you using IIS? IIS does have a cache control on pages IIRC. You
> switching that on?

I'm using Tomcat on W2K

> I'm an Apache user myself, can't say I've ever had a problem with open
> files.
> What you can do is have a script that monitors open files.
> I use the program psFile by sysinternals to return a list of open
> So when an opened file is found and then closed by the web server the
> script could swap the old file with the updated one.
> Not to difficult to write in the usual scripting manner.

Sounds interesting. I'll look into the sysinternals app.
Can you provide any pointers to example scripts of the kind you mention

Michael Pickard
Software Engineer
Visit London
6th Floor,
2 More London Riverside, London, SE1 2RR
Tel:  +44 (0)20 7234 5857
Fax: +44 (0)20 7234 5751 
Visit London is the official visitor organisation for London. Visit London is partly funded by Partnership, the Mayor's London Development Agency and the Association of London Government.
The information contained in this e-mail is confidential and intended for the named recipient(s) only.  If you have received it in error, please notify the sender immediately and then delete the message.  If you are not the intended recipient, you must not use, disclose, copy or distribute this email. The views expressed in this e-mail are those of the individual and not of Visit London. We reserve the right to read and monitor any email or attachment entering or leaving our systems without prior notice.

More information about the rsync mailing list