PDA

Click to See Complete Forum and Search --> : URLdownloadtofile call the same file in cache


tcyu
May 2nd, 2001, 10:33 AM
Hi ALL VB fan,

Using C++ to implement urldownloadtofile to download
the latest version of file is so easy. API Function ready available.

But if you implement urldownloadtofile in visual basic, it will always download the same version of file from cache momery.

Anyone can help me the code to solve this problem.

Thanks
TC YU

da_silvy
May 5th, 2001, 01:09 AM
you could possibly try downloading the file, to the local filename, with the date on the end:

e.g.

Filename = "c:\update05052001.exe"

that might stop it from taking it from the cache...


just an idea, because i was thinking about the IE download resume, which only works, with the same, download path and local path :)

tcyu
May 5th, 2001, 03:11 AM
Like to share with those are interested , i have tried following, it did not work, you can avoid this approach:-
1. save the file to local drive as name by time such as finamemmddyy.html.
2. delete all file in cache memory .:( :( :(

So if anyone have the fail approach, please also post.