Copy multiple files from the server to the local system via
FTP.
Syntax
object.GetMultipleFiles( LocalDir,
RemoteDir, FileMask )
Parameters
- LocalDir
- A string value that 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 in the directory, it will be overwritten.
- RemoteDir
- A string value that specifies the name of the directory on the
server where the files will be copied from. You must have
permission to read the contents of the directory.
- FileMask
- A string value that 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 GetMultipleFiles method copies multiple files from the
server to the local system. If the local file already exists,
it is overwritten.
Example
nError = FileTransfer1.GetMultipleFiles(strLocalDir, strServerDirectory, "*.wav")
See Also
GetFile Method,
PutMultipleFiles Method
|