Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

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



  • Prev by Date: Re: Adding text at various X,Y locations on Multi-Function Graphs
  • Next by Date: Re: fourier transform
  • Previous by thread: Re: Notebook Filename
  • Next by thread: Re: Notebook Filename