<< back to sysax.com Product page

9.1. Renaming Files and Folders

The FTPRename method can be used to rename local or remote files and folders. The "local" or "remote" keywords are used to specify whether a local or remote item should be renamed.

Exhibit 9.1. IDL Definition of method to renaming files and folders


HRESULT FTPRename       ([in] BSTR b_localremote, [in] BSTR b_oldname, [in] BSTR b_newname);


Exhibit 9.2. Example usage of method to renaming files and folders (VBScript)


app.FTPRename "local", "old.txt", "new.txt"