edtFTPnet/Free - Open-source FTP component for .NET | Download
Rename a file or directory.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnet (in edtFTPnet.dll) Version: 2.2.3.0

Syntax

C#
public virtual bool RenameFile(
	string from,
	string to
)
Visual Basic
Public Overridable Function RenameFile ( _
	from As String, _
	to As String _
) As Boolean
Visual C++
public:
virtual bool RenameFile(
	String^ from, 
	String^ to
)

Parameters

from
Type: System..::..String
Name of file or directory to rename.
to
Type: System..::..String
New file-name.

Return Value

true if the file was renamed successfully.

See Also