Rename a file or directory.
Namespace: EnterpriseDT.Net.FtpAssembly: 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.