Results 1 to 3 of 3

Thread: Locking files

  1. #1

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611

    Locking files

    How can I lock files so that other programs cannot access them while mine does?

  2. #2
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    Use the open statement to lock:
    Code:
    Open filename For append lock read write As #1

  3. #3

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    Originally posted by jim mcnamara
    Use the open statement to lock:
    Code:
    Open filename For append lock read write As #1
    Thanks Jim - I read your earlier posting with this in it but it did not seem to stop Adobe from opening a PDF locked this way (which was my aim).

Posting Permissions

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



Click Here to Expand Forum to Full Width