Programming with FTP OLE Automation
Password property
Syntax |
Object.Password |
Data type |
String |
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
The default value is "".
None