Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
So much to download
Message
 
To
03/05/2012 15:16:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01543133
Message ID:
01543160
Views:
85
>Hi All,
>
>I have to download a file of Denied Persons ("http://www.bis.doc.gov/dpl/dpl.txt") to a specified location that my app can process, but I'd like to do it in the background without having to launch a browser. How can I do this?
>Thanks.
>
>Luke

Something like:
lcURL="http://www.bis.doc.gov/dpl/dpl.txt"
cTargetFile = 'c:\temp\dpl.txt'

DECLARE INTEGER URLDownloadToFile IN urlmon;
		INTEGER, STRING, STRING, INTEGER, INTEGER
ERASE (cTargetFile)
if NOT (URLDownloadToFile (0, lcURL, cTargetFile, 0,0) = 0)
      ?? " not downloaded? "
ENDIF
....
Good Luck
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform