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

CreateDirectory

CreateDirectory
creates a directory with name dir.
CreateDirectory
creates a directory in the default area for temporary directories on your computer system.
  • If is a single name, CreateDirectory creates a subdirectory of your current working directory.
  • CreateDirectory returns the full name of the directory it creates, and $Failed if it cannot create the directory.
Create a directory:
Check the presence of the new directory:
Delete the directory:
The directory is no longer there:
Create a directory:
In[1]:=
Click for copyable input
Out[1]=
Check the presence of the new directory:
In[2]:=
Click for copyable input
Out[2]=
Delete the directory:
In[3]:=
Click for copyable input
The directory is no longer there:
In[4]:=
Click for copyable input
Out[4]=
New in 2 | Last modified in 6