This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

RenameFile

RenameFile["file1", "file2"]
renames file1 to file2.
  • file1 must already exist; file2 must not.
  • RenameFile sets the modification date for file2 to be the same as for file1.
  • RenameFile returns the full new file name, or $Failed if the file cannot be renamed.
Copy a file:
Rename the file:
Import the renamed file:
Delete the file:
New in 2