Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set ASCII mode with Internet transfer control
Message
De
08/05/2001 06:57:15
Mark Evans
Business Systems Services (Uk) Limited
Swansea, Royaume Uni
 
 
À
04/05/2001 04:58:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00503378
Message ID:
00504610
Vues:
25
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
Fil
Voir

Click here to load this message in the networking platform