Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Downloading HTML files from web servers
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00782614
Message ID:
00785720
Views:
19
Using the URLDownloadToFile API function could be the shortest way:
= DownloadRemote('http://www.levelextreme.com', 'c:\temp\test.txt')
MODI FILE 'c:\temp\test.txt' NOWAIT

FUNCTION DownloadRemote(lcRemoteFile, lcLocalFile)
* downloading a remote file to a local file
	DECLARE INTEGER URLDownloadToFile IN urlmon;
		INTEGER, STRING, STRING, INTEGER, INTEGER
	WAIT WINDOW NOWAIT "Downloading remote file..."
	= URLDownloadToFile(0, lcRemoteFile, lcLocalFile, 0,0) = 0
	WAIT CLEAR
Previous
Reply
Map
View

Click here to load this message in the networking platform