MathGroup Archive 2007

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

Search the Archive

Re: Re: Opening a foreign file from Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg78905] Re: [mg78862] Re: Opening a foreign file from Mathematica
  • From: John Fultz <jfultz at wolfram.com>
  • Date: Thu, 12 Jul 2007 05:23:09 -0400 (EDT)
  • Reply-to: jfultz at wolfram.com

On Wed, 11 Jul 2007 06:15:40 -0400 (EDT), David Reiss wrote:
> Within the notebook (assuming that it is saved on disk--this will not
> make sense if it doesn't exist on disk of course)  if I execute the
> following I will get the value of dir
>
> dir = DirectoryName[ToFileName["FileName" /. NotebookInformation[]]]

Incidentally, this has gotten somewhat more convenient in version 6.

NotebookDirectory[EvaluationNotebook[]]

>
> --David
> A WorkLife FrameWork
> E x t e n d i n g MATHEMATICA's  Reach...
> http://scientificarts.com/worklife
> Compatible with Mathematica 6
Sincerely,
 
John Fultz
jfultz at wolfram.com
User Interface Group
Wolfram Research, Inc.




  • Prev by Date: Re: Debug of FindRoot
  • Next by Date: MultipleListPlot - does not work
  • Previous by thread: Re: Opening a foreign file from Mathematica
  • Next by thread: Re: Opening a foreign file from Mathematica