Results 1 to 2 of 2

Thread: [RESOLVED] .fileexists on a timer

  1. #1

    Thread Starter
    Addicted Member Spirited Machine's Avatar
    Join Date
    May 2009
    Posts
    215

    Resolved [RESOLVED] .fileexists on a timer

    How taxing would it be on a system to check for a file's existence every 2 seconds on a timer? Is there a better alternative?

    A little background, possible unecessary, is that I'm creating a "lock" file when my application opens a file, so that someone else on the network cannot open that same file. The application opens a read-only version of the file, and checks for when the 'lock' file no longer exists, so that the user can then open the file when the other user is finished. It's an 'own'/'disown' system. Works well so far, but I'm wondering if there's a better way.

  2. #2
    New Member
    Join Date
    Oct 2009
    Posts
    13

    Re: .fileexists on a timer

    I believe you can use a FileSystemWatcher to do what you need.

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