FtpClientConnection::SendFiles Method (array<String^>^, String^, Boolean, Boolean)

 

Sends files to the File Transfer Protocol (FTP) server.

Namespace:   Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

public:
void SendFiles(
	array<String^>^ localFileNames,
	String^ remotePath,
	bool overwrite,
	bool isTransferAscii
)

Parameters

localFileNames
Type: array<System::String^>^

The files on the FTP server to send.

remotePath
Type: System::String^

The remote path where the files are located.

overwrite
Type: System::Boolean

Specifies whether to overwrite the files, if the files already exist on the remote computer. A value of true indicates that the task will overwrite existing files.

isTransferAscii
Type: System::Boolean

Specifies if files should be sent in ASCII mode. A value of true indicates that the files should be sent in ASCII mode.

The following code example shows how to use the SendFiles method.

No code example is currently available or this language may not be supported.
Return to top
Show: