|
-
Oct 9th, 2009, 01:39 PM
#1
Thread Starter
Addicted Member
[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.
-
Oct 9th, 2009, 02:02 PM
#2
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|