edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Transfer a file between FTP servers using FXP.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40

Syntax

C#
public void TransferFileFXP(
	ExFTPConnection destination,
	string sourceFile,
	string destinationFile
)
Visual Basic
Public Sub TransferFileFXP ( _
	destination As ExFTPConnection, _
	sourceFile As String, _
	destinationFile As String _
)
Visual C++
public:
void TransferFileFXP(
	ExFTPConnection^ destination, 
	String^ sourceFile, 
	String^ destinationFile
)

Parameters

destination
Type: EnterpriseDT.Net.Ftp..::..ExFTPConnection
Connection to the destination server.
sourceFile
Type: System..::..String
name of file on source server to transfer
destinationFile
Type: System..::..String
name of file to be written to destination server

Remarks

For this to succeed, both FTP servers must have FXP enabled. The source (which is this connection's server) and destination FTPClients must already be connected to their FTP servers when this method is called.

The file will be transferred in whatever mode is currently set, i.e. BINARY or ASCII.

The file must be in the current working directory of the source, and will be placed in the current working directory of the destination.

See Also