|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
NotebookDirectory
NotebookDirectory[]
gives the directory of the current evaluation notebook.
NotebookDirectory[nb]
gives the directory for the notebook specified by nb.
DetailsDetails
- NotebookDirectory returns the full name of the directory as a string.
- NotebookDirectory gives $Failed if the specified notebook has never been saved as a file.
- The directory given by NotebookDirectory is on the filesystem of the computer on which the notebook front end is being run.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
Find the name of the directory containing the notebook file for this reference page:
| In[1]:= |
| Out[1]= | ![]() |
New in 6
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

