RENAME Rename a local file
<< Click to Display Table of Contents >> Navigation: Robo-FTP User's Guide > Script Programming > Script Commands > All Script Commands > RENAME Rename a local file |
Syntax: |
RENAME |
[ file name1 ] [ file name2 ] |
Arguments: |
[ file name1 ] |
Variable or string defining a file or path name; if no path is defined Robo-FTP’s working folder is used. |
|
[ file name2 ] |
Variable or string defining a file name. |
Options: |
None |
|
This script command renames a local file from [ file name1] to [ file name 2]. This is an example of the RENAME command:
RENAME "oldname" "newname"
This command does not support wildcards but you may be able to use the DOSCMD command to accomplish a multi-file rename:
SET temp = 'ren "*.txt" "*.old"' ;; note use of double quotes within single quotes
DOSCMD temp
To rename a file on the FTP site, use the FTPRENAME script command.
Related command(s): FTPRENAME, MAKEFILENAME, WORKINGDIR, DOSCMD, COPY, MOVE, APPEND, DELETE