Mathematica 9 is now available
Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Command to get a notebook's directory?

  • To: mathgroup at
  • Subject: [mg22978] Re: [mg22927] Command to get a notebook's directory?
  • From: "Jordan Rosenthal" <jr at>
  • Date: Sat, 8 Apr 2000 14:44:46 -0400 (EDT)
  • Organization: Georgia Institute of Technology, Atlanta GA, USA
  • References: <8ck0rd$>
  • Sender: owner-wri-mathgroup at


Thanks to both of you for your reply.   Between the time I wrote my message
and the time you replied I also (after quite a bit of time!) came up with
the following

  ToFileName[ NotebookDirectory /. Options[$FrontEnd,
NotebookDirectory][[1]] ]

Since you both used the NotebookInformation[] function, I am wondering if
there is any reason my approach may be buggy.  Is there any hidden problems
in doing it my way?



"Adalbert Hanssen" <hanssen at> wrote in message
news:8ck0rd$g59 at
> Hi,
> according to [mg20941], the solution is
> ToFileName[First["FileName" /.
>                   NotebookInformation[EvaluationNotebook[]]
>                 ] /. $RootDirectory->""
>           ]
> greetings
> Adalbert

  • Prev by Date: Re: Parallel programming.
  • Next by Date: Re: making a column into a list
  • Previous by thread: Re: Command to get a notebook's directory?
  • Next by thread: Re: Re: Command to get a notebook's directory?