|
-
Oct 11th, 2002, 06:25 AM
#1
Thread Starter
Lively Member
FileSystemWatcher Array - Ideas
I need to read in a config file or from a database multiple directories to watch\monitor with the FileSystemWatcher. The number of FileSystemWatchers that gets created will have to be dynamic when the app starts based on the amount of configs read in. My only thought is to somehow read in the settings, create an array of FileSystemWatchers and go from there.
Does this sound like the correct way to approach this? Any other ideas, suggestions, or samples would be GREATLY appreciated.
-
Oct 11th, 2002, 07:54 AM
#2
Fanatic Member
Not sure how good/bad this would be performance wise, but it seems to me you only need one FileSystemWatcher per filesystem, so long as all the files you're monitoring for have some filename criteria (same extension, same first few letters of filename or something) you can watch for. Probably if you're working with a shared disk with many users hitting it at once this isn't the most desirable way to do it but I don't really know how much overhead it would take.
-
Oct 11th, 2002, 08:25 AM
#3
Thread Starter
Lively Member
Every config would be different, meaning each would have a different file system on a different server, etc. I think I would have to some how create multiple instances of the FileSystemWatcher for each unique config.
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
|