decorative banner

Previous | Next               Table Of Contents > 4 File system commands > 4.1 Renaming files and folders

4.1 Renaming files and folders


Files and folders can be renamed using the ftprename command. The predefined keywords local and remote are used to apply this command on either the local or remote computer. Both the original name string and the new name string should be specified. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully.

The syntax is

ftprename <keywords: local, remote>, <original name string>, <new name string>;

Some examples are

ftprename local, "file_1.txt", "file_1_0305.txt"; #rename local file

ftprename remote, "file.log", "file_0305.log"; #rename remote file


Previous | Next