DOCUMENTATION CENTER SEARCH
Mathematica
>
File Operations
>
Built-in
Mathematica
Symbol
Manipulating Files and Directories
Tutorials »
|
CopyFile
DeleteFile
RenameDirectory
See Also »
|
File Operations
More About »
RenameFile
RenameFile
["
file
1
", "
file
2
"]
renames
file
1
to
file
2
.
MORE INFORMATION
file
1
must already exist;
file
2
must not.
RenameFile
sets the modification date for
file
2
to be the same as for
file
1
.
RenameFile
returns the full new file name, or
$Failed
if the file cannot be renamed.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Copy a file:
In[1]:=
In[2]:=
In[3]:=
Out[3]=
Rename the file:
In[4]:=
In[5]:=
Out[5]=
Import the renamed file:
In[6]:=
Out[6]=
Delete the file:
In[7]:=
SEE ALSO
CopyFile
DeleteFile
RenameDirectory
TUTORIALS
Manipulating Files and Directories
MORE ABOUT
File Operations
New in 2
© 2008 Wolfram Research, Inc.