Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Systems Interfaces & Deployment > File Operations >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team