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


Receives files from the File Transfer Protocol (FTP) server.

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

void ReceiveFiles(
	array<String^>^ remoteFileNames,
	String^ localPath,
	bool overwrite,
	bool isTransferAscii


Type: array<System::String^>^

The files on the FTP server to receive.

Type: System::String^

The local path where you want to receive the remote files.

Type: System::Boolean

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

Type: System::Boolean

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

Wild-card characters are allowed. For example, receiving from a remoteFileNames of /MyFolder/MyFiles*.* will retrieve from all files in the MyFolder directory that start with the characters MyFiles.

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

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