Opens a connection to the server. Actually it doesn't open the connection, but it sets up the connection properties. Actual connection occurs when a send or receive operation on the FTP connection.
All parameters to this method are options - you can also set the related properties on the wwSftp object (
.cPassword) which is the more common use case (see example).
o.FtpConnect(lcServer, lcUsername, lcPassword)
0 (or throws on exception)
SFTP Server IP Address or domain name. Note this is not a URL, just the domain name:
Username for the server
Password for the server
loFtp = CREATEOBJECT("wwSftp") loFtp.cFtpServer = "127.0.0.1" loFtp.nFtpPort = 23 loFtp.cUsername = "tester" loFtp.cPassword = "password" loFtp.FtpConnect() loFtp.FtpGetFileEx("sailbig.jpg","c:\temp\sailbig.jpg") loFtp.FtpGetFileEx("/subfolder/sailbig2.jpg","c:\temp\sailbig2.jpg") loFtp.FtpClose()
See also:Class wwSFTP
Comment or report problem with topic