MathGroup Archive 2005

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

Search the Archive

Re: How can get the Path of current Notebook ?


On 7/15/05 1:02 AM, "quzhi at quzhi.net" <quzhi at quzhi.net> wrote:

> 
> How can get  the Path of current Notebook ?
> 
> --
> http://www.quzhi.net
> quzhi at quzhi.net
> 
> 
Hello!  There may be other solutions, but I got this from somewhere and it
works... Evaluating this line will give the path of the notebook where the
evaluation is being run

StringJoin[
   ToFileName[
      ("FileName"/.NotebookInformation[EvaluationNotebook[]])[[1]]

  ]
    ];

Hope that helps,

Tom De Vries


  • Prev by Date: Re: Light and surface colors
  • Next by Date: Re: How can get the Path of current Notebook ?
  • Previous by thread: Re: How can get the Path of current Notebook ?
  • Next by thread: Re: How can get the Path of current Notebook ?