Thread: Monitoring a folder

  1. #1
    Registered User
    Join Date
    Nov 2002

    Monitoring a folder

    Hi, is there a way to get some sort of notification when the contents of a folder is changed ?

    What I want to do is to monitor a folder and see for example if a new file is put into the folder. The way I tried was to just keep a list of all the files/subdirs and compare it to the actual contents every X seconds. I was wondering if there was a better way to accomplish this
    Using : MSVS .NET 2003
    OS : Windows XP

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    You say you use MSVC but obviously cant be bothered to look in the helpfiles that come with the compiler because if you had you would have found this information out for yourself. Also dont forget msdn
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :-

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading .dat files from a folder in current directory...
    By porsche911nfs in forum C++ Programming
    Replies: 7
    Last Post: 04-04-2009, 09:52 PM
  2. Not able to access directory of home folder
    By Bargi in forum Linux Programming
    Replies: 1
    Last Post: 02-06-2008, 02:45 AM
  3. read only folder on Windows
    By George2 in forum Windows Programming
    Replies: 2
    Last Post: 11-05-2007, 09:18 AM
  4. Hiding a folder
    By nextstep in forum Windows Programming
    Replies: 16
    Last Post: 03-20-2005, 03:07 PM
  5. Monitoring a Folder
    By golfinguy4 in forum Windows Programming
    Replies: 3
    Last Post: 05-24-2003, 02:08 PM