Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set ASCII mode with Internet transfer control
Message
From
08/05/2001 06:57:15
Mark Evans
Business Systems Services (Uk) Limited
Swansea, United Kingdom
 
 
To
04/05/2001 04:58:16
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00503378
Message ID:
00504610
Views:
30
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\)
Previous
Reply
Map
View

Click here to load this message in the networking platform