edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Click or drag to resize

ExFTPConnectionTransferFileFXP Method

Transfer a file between FTP servers using FXP.

Namespace:  EnterpriseDT.Net.Ftp
Assembly:  edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.3.0.0
Syntax
public void TransferFileFXP(
	ExFTPConnection destination,
	string sourceFile,
	string destinationFile
)

Parameters

destination
Type: EnterpriseDT.Net.FtpExFTPConnection
Connection to the destination server.
sourceFile
Type: SystemString
name of file on source server to transfer
destinationFile
Type: SystemString
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