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: Tue, 16 Sep 2003 04:36:49 -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.
- Follow-Ups:
- Re: Finding the Path to/Directory for the current EvaluationNotebook?
- From: jmt <jmt@dxdydz.net>
- Re: Finding the Path to/Directory for the current EvaluationNotebook?