[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!
Re: [2005] Building a folder watcher?
Quote:
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