Thanks, this solution is quite a lot simpler. However, the other approach does has some benefits too, for instance, the fact that it shows the progress.
Do you happen to know what happens when the Web site requests a password? Does the login dialog appear, just as in the browser? This would be acceptable, but I am also curious whether the login & password can be passed from VFP.
Saludos, Hilmar.
>Another (simplify) way to catch URLs & certain web files:
>
>
>Declare Long URLDownloadToFile in "urlmon";
>Long pCaller,;
>String szURL,;
>String szFileName,;
>Long dwReserved,;
>Long lpfnCB
>
>url="http://www.whatever.com"
>*Add any extension (html - asp - txt...etc
>localfilename="d:/yourfile.extension"
>ngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)
>? ngRetVal
>
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)