Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*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 2005

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

Search the Archive

Re: How can get the Path of current Notebook ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58721] Re: [mg58695] How can get the Path of current Notebook ?
  • From: Tom De Vries <tom_toad at telus.net>
  • Date: Fri, 15 Jul 2005 14:14:03 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 7/15/05 1:02 AM, "quzhi at quzhi.net" <quzhi at quzhi.net> wrote:

> 
> How can get  the Path of current Notebook ?
> 
> --
> http://www.quzhi.net
> quzhi at quzhi.net
> 
> 
Hello!  There may be other solutions, but I got this from somewhere and it
works... Evaluating this line will give the path of the notebook where the
evaluation is being run

StringJoin[
   ToFileName[
      ("FileName"/.NotebookInformation[EvaluationNotebook[]])[[1]]

  ]
    ];

Hope that helps,

Tom De Vries


  • Prev by Date: Re: Light and surface colors
  • Next by Date: Re: How can get the Path of current Notebook ?
  • Previous by thread: Re: How can get the Path of current Notebook ?
  • Next by thread: Re: How can get the Path of current Notebook ?