Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Downloading HTML files from web servers
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00782614
Message ID:
00785720
Vues:
16
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform