FtpPutMultipleFiles
INT FtpPutMultipleFiles(
HCLIENT hClient,  
LPCTSTR lpszLocalDirectory,  
LPCTSTR lpszRemoteDirectory,  
LPCTSTR lpszFileMask,  
DWORD dwReserved  
);

The FtpPutMultipleFiles function copies one or more files from the local host to the remote system, using the specified wildcard.

Parameters

hClient
Handle to the client session.
lpszLocalDirectory
Pointer to a null-terminated string which specifies the local directory where the files will be copied from. A NULL pointer or empty string specifies that files should be copied from the current working directory.
lpszRemoteDirectory
Pointer to a null-terminated string which specifies the remote directory where the files will be copied to. A NULL pointer or empty string specifies that the files should be copied to the current working directory on the server.
lpszFileMask
Pointer to a null-terminated string which specifies the files that are to be copied from the local system to the remote server. The file mask should follow the Windows conventions used for wildcard file matches.
dwReserved
A reserved parameter. This value should always be zero.

Return Value

If the function succeeds, the return value is zero. If the function fails, the return value is FTP_ERROR. To get extended error information, call FtpGetLastError.

Remarks

The FtpPutMultipleFiles function is used to transfer files from the local host to the remote server which match a specified wildcard file mask. All files will be transferred using the current file type as specified by the FtpSetFileType function.

Requirements

Client: Requires Windows Vista, Windows XP or Windows 2000 Professional.
Server: Requires Windows Server 2008, Windows Server 2003 or Windows 2000 Server.
Header: Include cstools6.h.
Library: Use csftpav6.lib.
Unicode: Implemented as Unicode and ANSI versions.

See Also

FtpChangeDirectory, FtpGetFile, FtpGetMultipleFiles, FtpPutFile


Copyright © 2008 Catalyst Development Corporation. All rights reserved.