Re: Notebook Filename

*To*: mathgroup at smc.vnet.net*Subject*: [mg30329] Re: [mg30312] Notebook Filename*From*: Andrzej Kozlowski <andrzej at tuins.ac.jp>*Date*: Sat, 11 Aug 2001 03:39:51 -0400 (EDT)*Sender*: owner-wri-mathgroup at wolfram.com

If you only want the name of the window title (which seems to be the case) you can simply evaluate: "WindowTitle" /. NotebookInformation[EvaluationNotebook[]] (this does not work in Mathematica 3.0) If you want the actual file name (including full path): ToFileName["FileName" /. NotebookInformation[EvaluationNotebook[]]] This of course will not work if your notebook has not been saved. Andrzej Kozlowski Toyama International University JAPAN http://platon.c.u-tokyo.ac.jp/andrzej/ On Wednesday, August 8, 2001, at 02:34 PM, Doug Pickering wrote: > 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 > > >