Results 1 to 2 of 2

Thread: [2005] Building a folder watcher?

  1. #1

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    [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!

  2. #2
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    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
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

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