CuteFTP Professional User s Guide
`Initialize all necessary fields for MySite : host name,
user, password, etc.
MySite.Connect
MySite.CreateRemoteFolder("/dir")
`creates /dir (because
absolute path was used)
MySite.RemoteFolder = "/dir" `now change to the newly
create `dir' folder
MySite.CreateRemoteFolder("dir2")
`creates /dir/dir2
(because relative path was used)
Renaming a remote file or folder
Description
Use the RemoteRename method to rename a file or folder on the remote server.
Syntax
Object.RemoteRename(BSTR bstrFrom, BSTR bstrTo)
Parameters
This contains the folder s old name in a relative or
BstrFrom
absolute path. The path must be the same in both
parameters.
This contains the folder s new name in a relative or
BstrTo
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"
Renaming a local file or folder
Description
Use the LocalRename method to rename a file or folder on your local hard disk.
Syntax
Object.LocalRename(BSTR bstrFrom, BSTR bstrTo)
Parameters
BstrFrom
This contains the folder s old name in its full
182
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved