Re: Notebook Filename
- To: mathgroup at smc.vnet.net
- Subject: [mg30322] Re: Notebook Filename
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Sat, 11 Aug 2001 03:39:45 -0400 (EDT)
- References: <9kqjuf$4fp$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Doug, ToFileName["FileName"/.NotebookInformation[InputNotebook[]]] D:\My Documents\Training\Current Courses\Notebook Programming\Course \ Notes\FrontEndFunctions.nb ("FileName"/.NotebookInformation[InputNotebook[]])[[-2]] FrontEndFunctions.nb This is a string: InputForm[%] "FrontEndFunctions.nb" -- 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 "Doug Pickering" <Pickering at BrandonU.ca> wrote in message news:9kqjuf$4fp$1 at smc.vnet.net... > Is there a way to identify the filename of the notebook in use from within > that notebook. > > For example, if I open the notebook "testintegral.nb" can I use a > function to give me the string "testintegral.nb" ? > > Thank you in advance, > > Doug Pickering. > > > > Doug Pickering > Professor > Dept of Mathematics and Computer Science > Brandon University > (204) 727-9674 > Pickering at BrandonU.ca > >