MathGroup Archive 1998

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

Search the Archive

AW: Finding the Path to the Active Notebook


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