Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Mathematica > 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.
New in 2
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team