Files - multiple users

Results 1 to 2 of 2

Thread: Files - multiple users

  1. #1
    Join Date
    Dec 1969

    Default Files - multiple users

    Hi,<BR><BR>In my application there was a requirement to update a file(FileA) by appending at a specified location BUT as it can be appended only at the end of file,<BR> So i made one more copy of the same file(FileB) <BR>in file(FileA) Searched for the string from where i wanted to append, then after writing to the file, i copied the rest of the part from the other file(FileB)....<BR><BR>Well then my aim is fullfilled now, the main problem I have to face is what happens when there are multiple users accessing this file.<BR><BR>Is there any Lock, so that if a user is accessing the file no other would access that particular file ?<BR><BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Files - multiple users

    Well... When you create FileA (the copy), give it a reasonable name. Something like "targetName_working.bak". That way you can use the FileSystemObject to test if that file exists. If it does, say the file&#039;s currently locked.<BR><BR>That&#039;s basically how MS do it with Access.<BR><BR>Craig.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts