NotebookDirectory
gives the directory of the current evaluation notebook.
gives the directory for the notebook specified by nb.
Details
- 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.
Examples
open allclose all
Wolfram Research (2007), NotebookDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookDirectory.html.
Text
Wolfram Research (2007), NotebookDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookDirectory.html.
CMS
Wolfram Language. 2007. "NotebookDirectory." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NotebookDirectory.html.
APA
Wolfram Language. (2007). NotebookDirectory. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NotebookDirectory.html