GetMultipleFiles Method

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

Syntax

object.GetMultipleFiles(LocalDir, RemoteDir, FileMask)

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

Return Type

Integer

Remarks

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

The LocalDir argument specifies the name of the directory on the local system where the files will be stored. If a file by the same name already exists, it will be overwritten.

The RemoteDir argument specifies the name of the directory on the remote system where the files will be copied from. You must have permission to read the contents of the directory.

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.GetMultipleFiles(strLocalDir, strServerDirectory, "*.wav")

See Also

GetFile Method, PutMultipleFiles Method


Copyright © 2008 Catalyst Development Corporation. All rights reserved.