Renames a file on disk.

Syntax

RENAME <filename> TO <new name>

Description

RENAME is identical to the File objectís rename(†) method, except that as a command, the file name arguments are treated as names, not a character expressions. They do not require quotes unless they contain spaces or other special characters. If the name is in a variable, you must use the indirection or macro operators.

See rename(†) for details on the operation of the command.