Hi guys,
We have implemented a solution where our app is checking for the existence of txt files in a certain folder. Another application is sending to us TXT files , which we need to process and delete when done.
We used the Dirlist method and this works almost perfect. Problem is our customer wants us to handle the incoming files by date-time stamp and not in the alfabetically order of the filename which is used by the dirlist method.
I've done some searching and found a few suggestions of using an external datawindow , then FindFirst file api and so on to feed the datastore with the filename and timestamp , sort the datastore and then start processing.
This seems to me like so much overhead, wouldn't it be easier if APPEON could extend the Dirlist function with an extra parameter where you can decide the sorting order of the result set ?
TIA
John
Good point but .. nothing a good GetCurrentDirectory ( ) before the DirlIst() and ChangeDirectory ( ) afterwards would not fix. ;-)
Regards ... Chris