Information générale
Catégorie:
Contrôles ActiveX en VFP
Hi Irene,
I've been developing a similar system over the last couple of weeks, but have been FTPing the other way. The code I used is below, and although this gets an ASCII file, I have never experienced any problems with the file contents.
The various connection properties are stored in variables, but if you substitute your IP address etc, I don't see any reason why it won't work.
Good luck,
Mark.
thisform.ftpcontrol.remotehost = MHOST
thisform.ftpcontrol.username = MUSERNAME
thisform.ftpcontrol.password = MPASSWORD
thisform.ftpcontrol.execute()
do while thisform.ftpcontrol.stillexecuting
* Do nothing
enddo
thisform.ftpcontrol.execute(,"CD /usr/tmp")
do while thisform.ftpcontrol.stillexecuting
* Do nothing
enddo
thisform.ftpcontrol.execute(,"GET 'myfile.txt c:\cfc\)
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement