Programming with FTP OLE Automation

image\rwnprg32.gif Connect method


Syntax Object.Connect SiteAddress [,ServerPort] [,PassiveMode]



Connects to an FTP server and does not log in. This method is useful when a customized login process is required. In most situations, use Open, which connects and logs in.


SiteAddress Argument type: String
Specifies the address of the FTP site. This can be an Internet address or name.

ServerPort Argument type: Integer
Specifies a nonstandard TCP service port number or socket for FTP. If ServerPort is not specified, the standard FTP service port (21) is used.

PassiveMode Argument Type: Boolean
Specifies whether the client should establish a passive data connection to the FTP server. Passive (PASV) mode is used for compatibility with certain firewalls. Default is True.