[DUG] LAN file sharing locking

Paul Roper PRoper at nmit.ac.nz
Fri Aug 26 13:23:33 NZST 2005


Jeremy wrote:

Check out the fmShareExclusive for TFileStream.
What the other user gets will depend on what application they are using to
try and open the file. If it's yours, you can handle this the way you want.

Thanks for this pointer, seems exactly what I need. Do I have to do anything
extra to lock the file with the first open, as when I try on a peer to peer
with a laptop connecting to a remote drive (which is my PC's local drive),
the second user can open the file no problem?

Paul

#############################################################################

CAUTION: This e-mail message and accompanying data may contain information 
that is confidential and subject to privilege.  If you are not the intended 
recipient, you are notified that any use, dissemination, distribution or 
copying of this message or data is prohibited.  If you have received this 
e-mail in error, please notify me immediately by return e-mail and delete 
all material you have incorrectly received. Nelson Marlborough Institute of 
Technology does not accept any liability for the individual opinions of staff 
members expressed within this e-mail message. Thankyou.

#############################################################################


More information about the Delphi mailing list