Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FtpGetFile()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
01094124
Message ID:
01094264
Vues:
28
This works for me:
DECLARE INTEGER FtpGetFile IN wininet;
	INTEGER hFtpSession, STRING lpszRemoteFile,;
	STRING lpszNewFile, INTEGER fFailIfExists,;
	INTEGER dwFlagsAndAttributes,;
	INTEGER dwFlags, INTEGER dwContext

lpszRemoteFile = "somefile.txt"
lpszNewFile = "c:\Temp\somefile.txt"
fFailIfExists = 0 && do not stop if the target already exists
dwContext = 0

lnResult = FtpGetFile(hFtpSession, lpszRemoteFile, lpszNewFile,;
	fFailIfExists, FILE_ATTRIBUTE_NORMAL, FTP_TRANSFER_TYPE_ASCII,;
	dwContext)
Complete code (requires membership):
How to download a file from the FTP server using FtpGetFile
http://www.news2news.com/vfp/?example=43&function=66
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform