|
-
Jul 28th, 2007, 10:00 AM
#1
[2005] Building a folder watcher?
Ok, I have almost no clue where to start with this. I need to build a folder watcher for each computer on my network... I'd like to store the folder somewhere, not sure if I want a text file as I plan for the program to run from the System Tray. I was thinking registry, but I have no clue how to go about that. Anyway, the first time the program is loaded (which will be on windows startup) it asks for the folder to watch... then just checks it every minute or so for changes, unless that can be done better with an event-driven model. As I said, I really don't know where to start with this, so any advise or code anyone could offer would be swell!
-
Jul 28th, 2007, 10:08 AM
#2
Re: [2005] Building a folder watcher?
 Originally Posted by timeshifter
Ok, I have almost no clue where to start with this. I need to build a folder watcher for each computer on my network... I'd like to store the folder somewhere, not sure if I want a text file as I plan for the program to run from the System Tray. I was thinking registry, but I have no clue how to go about that. Anyway, the first time the program is loaded (which will be on windows startup) it asks for the folder to watch... then just checks it every minute or so for changes, unless that can be done better with an event-driven model. As I said, I really don't know where to start with this, so any advise or code anyone could offer would be swell!
Hi,
I think you can use the FileSystemWatcher Class to accomplish this, see this link:
http://msdn2.microsoft.com/en-us/lib...emwatcher.aspx
Wkr,
sparrow1
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
|