PutMultipleFiles Method  
 

Copy multiple files from the local system to the server via FTP.

Syntax

object.PutMultipleFiles( LocalDir, RemoteDir, [FileMask] )

Parameters

LocalDir
A string value that specifies the name of the directory on the local system where the files are stored. You must have permission to read the contents of the directory.
RemoteDir
A string value that specifies the name of the directory on the server where the files will be copied to. If a file by the same name already exists in this directory, it will be overwritten.
FileMask
An optional string value specifies which files will be copied from the server. Typically this is a wildcard pattern, such as "*.exe", which would specify all executable programs on a Windows system.

Return Value

A value of zero is returned if the method succeeds. Otherwise, a non-zero error code is returned which indicates the cause of the failure.

Remarks

The PutMultipleFiles method copies multiple files from the local system to the server. If the remote file already exists, it is overwritten.

Example

nError = FileTransfer1.PutMultipleFiles(strLocalDir, strServerDirectory, "*.wav")

See Also

PostFile Method, PutFile Method, GetMultipleFiles Method