Renames a file on the FTP server.
If the FTP server supports it, you can use this method to move a file from one folder to another. The filenames specified by the sFilename and sNewFilename parameters can be relative to the FTP server's current working folder , or can be absolute to the remote system.
This method can only be used when the CurrentState property's value is fcsConnected.
| Parameter | Description |
|---|---|
| sFilename | The file to rename. |
| sNewFilename | The new filename. |
| Declaration | |
|---|---|
HRESULT RenameFile( [in] BSTR sFilename, [in] BSTR sNewFilename ) | |
LoggingCommandLine, ProcessCompleted