A FoxPro program generates a new *.xls file once a week in a folder. The folder contains many such files. Once a week I need to copy the LATEST file to a new folder.
The name of the bat file contains the date it was created as follows:
DEMO20080914.XLS
Is there a way to see if the current date is equal to the embedded date in the file name or in the creation date of the file?
or
Is there a way of selectly only the latest file?
or
Is there a way of getting the file that was created today?
Thanks in advance for any help you can provide.