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

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

Search the Archive

AW: Finding the Path to the Active Notebook

  • To: mathgroup at smc.vnet.net
  • Subject: [mg12748] AW: [mg12478] Finding the Path to the Active Notebook
  • From: Hermann Klocker <h.klocker at tirol.com>
  • Date: Wed, 10 Jun 1998 03:04:11 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

----------
Von:  Hermann Klocker[SMTP:h.klocker at tirol.com] Gesendet: Donnerstag,
21. Mai 1998 08:54 An:  'Adalbert Hanszen'; 'MathGroup' Betreff:   AW:
[mg12478] Finding the Path to the Active Notebook

[...]
Does anybody know a way, how to programmatically find out, from which
directory the active notebook was loaded? [...]

I use the following lines, yielding dir (directory) and nbn (filename of
the notebook) in Mathematica 3.0.1

nbinfo=NotebookInformation[EvaluationNotebook[]]; dir=("FileName" /.
nbinfo /. FrontEnd`FileName[d_List, nam_, ___] :> ToFileName[d];
nbn=("FileName" /. nbinfo /. FrontEnd`FileName[d_List, nam_, ___] :>
ToFileName[d,nam];




  • Prev by Date: RE: Re: Absolute coo
  • Next by Date: Integrate vs. NIntegrate
  • Previous by thread: RE: Re: Absolute coo
  • Next by thread: Integrate vs. NIntegrate