edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Rename a file or directory.

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

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