Connecting to a Remote Server (Connect)

Use the Connect method to log in to the remote server. Before calling it, set the protocol, host address, user name, and password to establish a successful connection.

Syntax

Object.Connect

Example

Set MySite = CreateObject("CuteFTPPro.TEConnection")

MySite.Protocol = "FTP"

MySite.Host = "ftp.cuteftp.net"

MySite.Login = "username"

MySite.Password = "password"

MySite.Connect

 

Any time you call a transfer function, the connect function is called indirectly. It is recommended you explicitly invoke the Connect function, though it is not necessary. You can always use the IsConnected property to determine whether you are connected at any given time.