Programming with FTP OLE Automation

image\rwnprg32.gif Connect method

 

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

 

Description

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.

Arguments

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

ServerPort Argument type: Integer
Optional
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
Optional
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.