General information
Category:
ActiveX controls in 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\)
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only