The Mathematica Journal
Departments
Download This Issue
Home
Feature Articles
Graphics Gallery
Tricks of the Trade
In and Out
Columns
The Mathematica Programmer
New Products
New Publications
Classifieds
Calendar
News Bulletins
Editor's Pick
Mailbox
Letters
Write Us
About the Journal
Staff and Contributors
Submissions
Subscriptions
Advertising
Back Issues

DirectoryName

Q: Is there a command which gives the directory where the current notebook resides?
A: There is no built-in command--but all the necessary building blocks are available. SelectedNotebook gives the currently selected notebook (NotebookObject) in the front end.
[Graphics:../Images/index_gr_16.gif]
[Graphics:../Images/index_gr_17.gif]
NotebookInformation provides information on any NotebookObject.
[Graphics:../Images/index_gr_18.gif]
[Graphics:../Images/index_gr_19.gif]
The machine-dependent value of Filename can be obtained using ToFileName.
[Graphics:../Images/index_gr_20.gif]
[Graphics:../Images/index_gr_21.gif]
Finally, the name of the directory is returned by DirectoryName.
[Graphics:../Images/index_gr_22.gif]
[Graphics:../Images/index_gr_23.gif]


Converted by Mathematica      September 29, 1999

[Prev Page][Next Page]