Directory monitoring

This is a discussion on Directory monitoring within the Windows Programming forums, part of the Platform Specific Boards category; Hey, Can anyone think of a resource friendly way of monitoring a large directory and all sub directroys for changes ...

  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,789
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,494
    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, 01:54 AM
  3. Finding files in a directory
    By smarta_982002 in forum C Programming
    Replies: 1
    Last Post: 01-25-2008, 09: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, 08:43 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21