Re: full path of current notebook
- To: mathgroup at smc.vnet.net
- Subject: [mg38007] Re: full path of current notebook
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Mon, 25 Nov 2002 01:57:41 -0500 (EST)
- References: <arp6j4$1rd$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
The directory of the notebook in which the evaluation is taking place is
given by
ToFileName[("FileName" /. NotebookInformation[EvaluationNotebook[]])[[{1}]]]
--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565
"Xah Lee" <xah at xahlee.org> wrote in message
news:arp6j4$1rd$1 at smc.vnet.net...
> is there a function/command to find out what's the current notebook's
> path on the file system?
>
> for example, i opened an existing notebook from harddisk. I want to
> run a command in that notebook that gives me the full path of the
> notebook.
>
> thanks.
>
> Xah
> xah at xahlee.org
> http://xahlee.org/PageTwo_dir/more.html
>