MathGroup Archive 2009

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

Search the Archive

Re: Directory[]

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

Hi,

> 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:

NotebookDirectory[]

for earlier version you can use something like:

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

hth,

albert


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