Programming with FTP OLE Automation

image\rwnprg32.gif Password property

 

Syntax

Object.Password
Object.Password =
Value

Data type

String

 

Description

Returns (first syntax line) or specifies (second syntax line) the user's password.

You can use this property in conjunction with a saved site and the LoadSiteProperties method to avoid having to include passwords in your code. For example:

FTPobject.LoadSiteProperties "sitename"

Dim pass As String

pass = FTPobject.Password

FTPobject.Open "site.com", "user", pass

Values

The default value is "".

FTP Script SET Parameter Equivalent

None