Description
Connects to an FTP server, sends multiple files or an entire directory structure, then disconnects from the FTP server.
Parameters
Parameter |
Description |
sServerAddress |
The IP address or host name of the FTP server to connect to. |
lServerPort |
The IP port that the FTP server is listening on (usually 21). |
sUserName |
The username to log in (usually "anonymous"). |
sPassword |
The password (for anonymous users, usually "guest") |
sLocalFileMask |
The path and file mask of the local files to send. All the local files that match the path and file mask specified by the sLocalFileMask parameter will be sent. See Wildcards
. |
bProcessSubfolders |
Pass True to recursively scan local subfolders to find files that match the sLocalFileMask parameter. Pass False to send only files directly located in the specified local path without scanning subfolders. |
sRemoteFolder |
The folder on the FTP server to send the files to. You can specify a filename, or a path and filename. The path and filename can be relative to the logged in user’s default folder, or can be an absolute path on the remote system. If it is left empty, the files will be sent to the logged in user’s default folder. |
bAsciiTransfer |
Set to True to send the file in ASCII mode, or False to send the file in binary mode. |
Examples
Visual Basic |
Copy Code |
XceedQuickFtp1.SendMultipleFiles("ftp.myserver.com",21,"jacob","secret",_ "c:\received\*.zip", False, "/texts", False) |
Delphi |
Copy Code |
XceedQuickFtp1.SendMultipleFiles('10.18.102.93',21,'anonymous','guest', "\\Server\Mirror\*", True, '', False); |
ATL example
Declaration |
|
HRESULT SendMultipleFiles ( [in] BSTR sServerAddress, [in] long lServerPort, [in] BSTR sUserName, [in] BSTR sPassword, [in] BSTR sLocalFileMask, [in] VARIANT_BOOL bProcessSubfolders, [in] BSTR sRemoteFolder, [in] VARIANT_BOOL bAsciiTransfer );
|
Applicable properties
None (The XceedQuickFtp object doesn't have any properties)
Events triggered
None (The XceedQuickFtp object doesn't have any events)