Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2009

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

Search the Archive

Re: Directory[]

  • To: mathgroup at
  • Subject: [mg96148] Re: Directory[]
  • From: Albert Retey <awnl at>
  • Date: Sat, 7 Feb 2009 03:50:02 -0500 (EST)
  • References: <gmgv05$33b$>


> Directory[] gives the name of the Mathematica working directory.
> Is there a possibility to get the name of the directory in which the
> notebook file is located?

For versions >= 6 there is:


for earlier version you can use something like:

 First["FileName" /. NotebookInformation[EvaluationNotebook[]]]]



  • Prev by Date: Re: Time Series Simulations
  • Next by Date: Re: Time Series Simulations
  • Previous by thread: Re: Directory[]
  • Next by thread: Re: Directory[]