URLDownloadToFile API downloading Older files not updated/latest Files
Hey,
I am using URLDownloadToFile API for downloading files from website to which i updated, but this API is retrieving the older files even after i upload a latest version of the file. I used a fake parameters along with the url but in fail.
szFileName = "C:/somename.zip"
surl ="http://www.sitename.com/foldername/filename.zip?FakeParam=" & int Where int will change every time when downloading.
DownloadFileFromNet = URLDownloadToFile(0, sURL, szFileName, 0, 0) = ERROR_SUCCESS
Please also let me know whether this API works in Windows VISTA Operating System.
Please help to solve this problem
Re: URLDownloadToFile API downloading Older files not updated/latest Files
It's not going to let you write to a root folder, or even create a root folder. For Vista, create your own folder in \ProgramData (which is hidden by default)
From there, you can read and write files