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