I'm using Delphi 7.
I'm just not sure where to start with this one. A co-worker comes to me and says "I want to monitor a directory and when all the files get put in there I want to create a txt file with all the file names and directory path in it."
So I'm thinking first i need to monitor the directory with maybe a timer, like check it every 3-5 minutes, and would have to compare the file names and sizes, (in a tstring maybe) to see if they are still changing and when they are no longer changing then I could start creating the txt file with a listing of all the files in that directory (with directory path)...
Does that sound reasonable?
Next question is how would i go about monitoring the directory?
Any/All suggestions are welcome...
Thanks
Tom Cusick
I'm just not sure where to start with this one. A co-worker comes to me and says "I want to monitor a directory and when all the files get put in there I want to create a txt file with all the file names and directory path in it."
So I'm thinking first i need to monitor the directory with maybe a timer, like check it every 3-5 minutes, and would have to compare the file names and sizes, (in a tstring maybe) to see if they are still changing and when they are no longer changing then I could start creating the txt file with a listing of all the files in that directory (with directory path)...
Does that sound reasonable?
Next question is how would i go about monitoring the directory?
Any/All suggestions are welcome...
Thanks
Tom Cusick