PutMultipleFiles Method

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

Syntax

object.PutMultipleFiles(LocalDir, RemoteDir, FileMask)

The object placeholder represents an expression that evaluates to a FileTransfer object.

Return Type

Integer

Remarks

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

The LocalDir argument 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.

The RemoteDir argument specifies the name of the directory on the remote system where the files will be copied to. If a file by the same name already exists, it will be overwritten.

The FileMask argument specifies which files will be copied from the remote system. Typically this is a wildcard pattern, such as "*.exe", which would specify all executable programs on a Windows system.

A value of zero is returned if the operation was successful, otherwise a non-zero error code is returned which indicates the cause of the failure.

Example

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

See Also

PostFile Method, PutFile Method, GetMultipleFiles Method


Copyright © 2008 Catalyst Development Corporation. All rights reserved.