DOCUMENTATION CENTER SEARCH
Mathematica
>
Directories & Directory Operations
>
Built-in
Mathematica
Symbol
Manipulating Files and Directories
Tutorials »
|
RenameDirectory
CreateDirectory
DeleteDirectory
CopyFile
See Also »
|
Directories & Directory Operations
File Operations
More About »
CopyDirectory
CopyDirectory
["
dir
1
", "
dir
2
"]
copies the directory
dir
1
to
dir
2
.
MORE INFORMATION
dir
1
must already exist;
dir
2
must not.
CopyDirectory
copies all the files in
dir
1
to
dir
2
.
CopyDirectory
sets the modification dates for
dir
2
and for all the files in it to be the same as those for
dir
1
.
CopyDirectory
returns the full name of the directory it copies to, and
$Failed
if it cannot complete the copy.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Copy a directory:
In[1]:=
In[2]:=
In[3]:=
Out[3]=
List of files in the directory:
In[4]:=
Out[4]=
Delete the directory:
In[5]:=
The directory is no longer there:
In[6]:=
Out[6]=
SEE ALSO
RenameDirectory
CreateDirectory
DeleteDirectory
CopyFile
TUTORIALS
Manipulating Files and Directories
MORE ABOUT
Directories & Directory Operations
File Operations
New in 2
© 2008 Wolfram Research, Inc.