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

CopyFile

CopyFile
copies to .
  • must already exist; must not.
  • CopyFile sets the modification date for to be the same as for .
  • CopyFile returns the full name of the file it copies to, and $Failed if it cannot do the copy.
The name of the file to copy:
Copy the file:
Import the new file:
Delete the file:
The name of the file to copy:
In[1]:=
Click for copyable input
Copy the file:
In[2]:=
Click for copyable input
Out[2]=
Import the new file:
In[3]:=
Click for copyable input
Out[3]=
Delete the file:
In[4]:=
Click for copyable input
New in 2