Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quietly saving a file from a URL
Message
From
22/12/2004 11:02:51
 
 
To
22/12/2004 10:59:36
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
00971439
Message ID:
00971441
Views:
19
This message has been marked as the solution to the initial question of the thread.
Hi Michale,
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
>Hi all,
>
>I need some input and advice on how I could go about taking a URL that points a file (in my case, a PDF), and quietly going to that URL and saving that file to disk.
>
>Thanks in advance,
>
>Mike
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform