Renames the remote file on the FTP server.

Namespace: Jscape.Ftp
Assembly: Jscape.Ftp (in Jscape.Ftp.dll) Version: 2.4.5.0

Syntax

C#
public void RenameFile(
	string remoteName,
	string newName
)
Visual Basic
Public Sub RenameFile ( _
	remoteName As String, _
	newName As String _
)
Visual C++
public:
void RenameFile(
	String^ remoteName, 
	String^ newName
)

Parameters

remoteName
Type: System..::..String
The remote filename to rename.
newName
Type: System..::..String
The new filename for the remote file.

Exceptions

ExceptionCondition
Jscape.Ftp..::..FtpExceptionIf an I/O or FTP error occurs.

See Also