Oof, immediately after postin my reply I realized a potentially much better solution. 
Will the last modified date/time of the files reflect the date and time mentioned in 
the filenames? If so, use cfdirectory as I mentioned but specify 
sort="datelastmodified DESC". Then first record returned will be the most recent file 
matching the filter :-)

Mike Mertsock
Alfred University Web Team

>I'm trying to find a particular file in a directory that has a file name
>similar to 'FILENAME20030803034545.csv'.
>
>I'm trying to use FileExists() but I keep running issues with the time, not
>so much the date....How do I look for a file that has the most recent date
>and time.  Is there an efficient way to find this out?
>
>Thanks,
>
>Matt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Reply via email to