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.
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
Cheers guys, I will look into it :)