MathGroup Archive 2003

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

Search the Archive

Finding the Path to/Directory for the current EvaluationNotebook?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43423] Finding the Path to/Directory for the current EvaluationNotebook?
  • From: AES/newspost <siegman at stanford.edu>
  • Date: Fri, 29 Aug 2003 07:16:50 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

I want to put a SetDirectory (?) command at the beginning of a notebook 
that will reset the working directory to the folder containing the 
notebook itself.

Objective is to have the results of any Exports, OpenWrites, etc, 
executed within that notebook automatically be directed to that same 
folder -- even if I close the notebook, rename it in the Finder (in Mac 
jargon), and re-open it.  

Or, if I Copy or Move the notebook to a different folder and later open 
it there, Exports or OpenWrites should go to that new, different folder.


  • Prev by Date: A Bug in Mathematica 5.0 (FourierTransform)
  • Next by Date: Using error message output
  • Previous by thread: A Bug in Mathematica 5.0 (FourierTransform)
  • Next by thread: Using error message output