For information about Globalscape, visit www.globalscape.com. |
Use the RemoteRename method to rename a file or folder on the remote server.
Syntax
Object.RemoteRename(BSTR bstrFrom, BSTR bstrTo)
Parameters
BstrFrom |
This contains the folder's old name in a relative or absolute path. The path must be the same in both parameters. |
BstrTo |
This contains the folder's new name in a relative or absolute path. The path must be the same in both parameters. |
Example
Set MySite = CreateObject("CuteFTPPro.TEConnection")
'Initialize all necessary fields for MySite : host name, user, password,
etc.
MySite.RemoteRename "/pub/user1/file.txt", "/pub/user1/file3.txt"