Hi Li,
First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to lock the files in a shared
directory when moving or deleting them. If there is any misunderstanding,
please feel free to let me know.
When files are being moved or deleted, they are automatically locked by the
windows file system. We needn't care about that. So I would like to confirm
whether you need to lock a single file or make only one of your client
program access to the files. If the latter one is true, I think you have to
create some file in the shared folder to be a marker, so the program will
check that to decide whether it can do the moving or deleting operation.
HTH.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."