Re: How can get the Path of current Notebook ?
- To: mathgroup at smc.vnet.net
- Subject: [mg58711] Re: How can get the Path of current Notebook ?
- From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
- Date: Fri, 15 Jul 2005 14:13:54 -0400 (EDT)
- Organization: Uni Leipzig
- References: <db7nen$mn4$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, GetNotebookDirectory[nb_NotebookObject] /; $Notebooks := Module[{fname}, fname = "FileName" /. NotebookInformation[nb] /. FrontEnd`FileName[dir_, ___] :> ToFileName[ dir]; If["FileName" == fname, fname = Directory[] <> $PathnameSeparator ]; fname ] Regards Jens <quzhi at quzhi.net> schrieb im Newsbeitrag news:db7nen$mn4$1 at smc.vnet.net... | | How can get the Path of current Notebook ? | | -- | http://www.quzhi.net | quzhi at quzhi.net | |