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

Thanks it is downloading the latest file after deleting the cache. Thanks a lot.

you can use msinet control with have many sample
Micrsoft Internet Transfer Control 6.0 (SP6)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.