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 > CopyFile >

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