Re: Finding the Path to/Directory for the current EvaluationNotebook?
- To: mathgroup at smc.vnet.net
- Subject: [mg43458] Re: [mg43423] Finding the Path to/Directory for the current EvaluationNotebook?
- From: jmt <jmt at dxdydz.net>
- Date: Wed, 17 Sep 2003 07:59:33 -0400 (EDT)
- References: <200309160836.EAA17106@smc.vnet.net>
- Reply-to: jmt at dxdydz.net
- Sender: owner-wri-mathgroup at wolfram.com
Try this :
SetDirectory[
DirectoryName[
ToFileName["FileName"/.NotebookInformation[SelectedNotebook[]]]]]
On Tuesday 16 September 2003 10:36, AES/newspost wrote:
> 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: Re: Finding the Path to/Directory for the current EvaluationNotebook?
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Re: Finding the Path to/Directory for the current EvaluationNotebook?
- References:
- Finding the Path to/Directory for the current EvaluationNotebook?
- From: AES/newspost <siegman@stanford.edu>
- Finding the Path to/Directory for the current EvaluationNotebook?