RENAME Rename a local file |
Top Previous Next |
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
|