Hi,
I need to download multiple files from the same website, with file names based on the date. Currently, I'm simply looping through the dates using the URLDownloadToFile function.
However, the problem is, the website sometimes posts updated files, so the original file would have a name like 20121004.csv and the new files would have names like 20121004_updated.csv and 20121004_updated2.csv, and the original, older versions are all still there. The updated files are rare, and the updated2 files are even rarer, but I need to be able to detect and download the extras. Currently, the only way I can think of is to have my loops keep going, and if a day has an _updated version, have it then check for an _updated2 version, and so on and so forth.
Is there by any chance some way I can do it more efficiently? Or, download multiple files? Like every file for a particular month (...201210*)?
Best regards.
Bookmarks