MathGroup Archive 2001

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

Search the Archive

Re: Notebook Filename


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
>
>




  • Prev by Date: Re: fourier transform
  • Next by Date: Re: Trick for getting the comples conjugate in symboliccalculations?
  • Previous by thread: Re: Notebook Filename
  • Next by thread: RE: Notebook Filename