Property

Method

Event

 

 

FtpPassword

Specifies or gets the user password when logging onto an FTP server.

Syntax

    [get] HRESULT FtpPassword(
    BSTR* pVal
    );
    [put] HRESULT FtpPassword(
    BSTR newVal
    );

Parameters

[get] pVal

[out, retval] Gets the current user password.

[put] newVal

[in] Specifies the user password when logging onto an FTP server.

Return Values

0 (always)

Sample Codes

VBScript

dim files()
dim object
set object = Document.editForm
object.wec.FtpFileScope = 0
object.wec.FtpFileFilter = 0
object.wec.FtpOverwrite = 0
object.wec.FtpPassiveMode = 1
object.wec.FtpPort = 21
object.wec.FtpUserName = "admin"
object.wec.FtpPassword = "adminxxx" ' Specifies the password.
object.wec.FtpUpload "www.myhome.co.kr", "/public_html", "index.htm"
'GET
filescope = object.wec.FtpFileScope
filefilter = object.wec.FtpFileFilter
overwrite = object.wec.FtpOverwrite
passivemode = object.wec.FtpPassiveMode
port = object.wec.FtpPort
username = object.wec.FtpUserName
password = object.wec.FtpPassword ' Gets the specified password.

See Also

FtpFileFilter, FtpFileScope, FtpOverwrite, FtpPassiveMode FtpPort, FtpUpload, FtpUserName, OnFtpUploadComlated