Open method

Establishes the connection to an FTP host.

Syntax

Object.Open SiteAddress, UserName, Password [,Account] [,ServerPort] [,PassiveMode]

Arguments

SiteAddress

Argument type: String. Required

Specifies the address of the FTP site, either an Internet address or name.

UserName

Argument type: String, Required

Specifies the user name for initiating the server login.

Password

Argument type: String, Required

Specifies the password assigned to user UserName. Default is AnonymousPassword.

Account

Argument type: String, Optional

Specifies an account that user UserName has rights to access. Default is blank.

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. Default is False.