MathGroup Archive 2005

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

Search the Archive

Re: How can get the Path of current Notebook ?


quzhi at quzhi.net wrote:
> How can get  the Path of current Notebook ?
> 
> --
> http://www.quzhi.net
> quzhi at quzhi.net
> 
> 

Hello,

Here is some code that will do that.

NBPathName[nb_NotebookObject]:=ToFileName@("FileName"/.NotebookInformation[nb]
/.{"FileName"->""});

NBPathName[SelectedNotebook[]]

I have never understood why something like NBPathName is not built into 
Mathematica!

David Bailey
http://www.dbaileyconsultancy.co.uk



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