Thread: Directory monitoring

  1. #1
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339

    Directory monitoring

    Hey,

    Can anyone think of a resource friendly way of monitoring a large directory and all sub directroys for changes such as renaming files, creating/copying in files, deleting files e.t.c. The bigger picture is i want to create a real time index of all files in a directory, probably in an XML file or maybe an SQL database to allow for fast searching. If needs be it woudnt have to be in real time and could say maybe do a check every 5 minutes.

    Thanks for any ideas.
    Jack
    TNT
    You Can Stop Me, But You Cant Stop Us All

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    I've been there and found a 100% easier and more effective method: Windows Indexing Service

    If you configure this service, and create a catalog for the folder in question, you can then use an OLEDB provider and an SQL-like languge to search for text within the files.

    It'll work well with C++, but it's even easier to use with ASP or WSH

    Do a little reading on it and come back

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Maybe this

  4. #4
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339
    Cheers guys, I will look into it
    TNT
    You Can Stop Me, But You Cant Stop Us All

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. Couple errors please help :-D
    By JJJIrish05 in forum C Programming
    Replies: 9
    Last Post: 03-06-2008, 02:54 AM
  3. Finding files in a directory
    By smarta_982002 in forum C Programming
    Replies: 1
    Last Post: 01-25-2008, 10:10 AM
  4. Replies: 6
    Last Post: 07-30-2003, 03:08 AM
  5. Directory reading trouble
    By samGwilliam in forum Linux Programming
    Replies: 0
    Last Post: 03-10-2002, 09:43 AM