Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quick FTP Filetransfer
Message
De
06/01/2005 03:28:30
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
MySQL
Divers
Thread ID:
00974359
Message ID:
00974621
Vues:
79
By using FTP 5.0+

[Quote]
SET PROCEDURE TO ALLTRIM(log_system.workpath)+"form\ftp.prg" ADDITIVE
PUBLIC z_memo, loFTP
loFTP = CREATEOBJECT('ftp_service')

cUID = "????"
cPWD = "3838"
cAddress = "???.???.???.???"
cPath = "/bmp/"
cFile = "*.*"

IF loFTP.OpenInternet(cUID, cPWD, cAddress,"21")
success1=loFTP.ChangeFTPDirectory(cPath)
success2=loFTP.GetFTPDirectoryArray(@gaServerFile,cFile)
loFTP.GetFTPFile(cFile, ALLTRIM(log_system.workpath)+"bmp\"+cFile)
ELSE
MessageBox("No Connection Made"+STR(loFTP.GetErrorCode(.T.)), 64, "FTP Message")
ENDIF
loFTP.CloseInternet()
[/Quote]
Best regards,

Aaron Chu

********************************************************

Working with Visual FoxPro is a lot of FUN!

********************************************************
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform