Property

Method

Event

 

 

FtpPort

Specifies the port number when transferring files to an FTP server.

Syntax

    [get] HRESULT FtpPort(
    long* pVal
    );
    [put] HRESULT FtpPort(
    long newVal
    );

Parameters

[get] pVal

[out, retval] Gets the current FTP server port number.

[put] newVal

[in] Specifies the port number when transferring files to an FTP server. The default value is '21'.

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 ' Specifies the port number.
object.wec.FtpUserName = "admin"
object.wec.FtpPassword = "adminxxx"
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 ' Gets the specified port number.
username = object.wec.FtpUserName
password = object.wec.FtpPassword

See Also

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