Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Download file from the internet
Message
From
01/08/2005 05:00:09
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01037397
Message ID:
01037420
Views:
29
This message has been marked as the solution to the initial question of the thread.
>Hi all
>
>I need to download a file from the internet. I know the URL or atleast generate the URL dynamically depending on the date the user enters.
>
>How do I get it from the net into the folder of my choice?
Function getfilefromurl
Lparameters lcRemoteFile,lcLocalFile
Local lnReturn
Declare Integer URLDownloadToFile In urlmon.Dll;
  INTEGER pCaller, String szURL, String szFileName,;
  INTEGER dwReserved, Integer lpfnCB
lnReturn = URLDownloadToFile (0, lcRemoteFile, lcLocalFile, 0, 0)
Return lnReturn=0
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform