|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
SetDirectory
SetDirectory["dir"]
sets the current working directory to dir.
SetDirectory[]
sets the current working directory to your "home" directory.
DetailsDetails
- SetDirectory sets the current working directory, then returns its full name.
- SetDirectory prepends the current working directory to the directory stack given by DirectoryStack[].
- For a relative path name, SetDirectory sets the directory relative to the current working directory.
- SetDirectory[] is equivalent to SetDirectory[$HomeDirectory].
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
Set the current working directory:
| In[1]:= |
| Out[1]= |
Setting the directory pushes a directory onto the DirectoryStack:
| In[2]:= |
| Out[2]= |
| In[3]:= |
| Out[3]= |
| In[4]:= |
| Out[4]= |
New in 2 | Last modified in 7
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
