Using Dir function to return the names of files in a selected folder. Is there a way to specify the order in which the files are returned for subsequent calls to the function? I want the first call to find the newest file, then subsequent calls to find the next newest, etc. until it has traversed the full list of files.
Actually — finding the newest file would be sufficient, because my program deletes each file after it has been processed. The newest file of the remaining files is what’s necessary.