Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2547

Re: Is there any environment variable for the directory containing the currently running source .nb file?

From Helen Read <readhpr@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Is there any environment variable for the directory containing the currently running source .nb file?
Date 2011-05-21 10:45 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ir853f$bah$1@smc.vnet.net> (permalink)

Show all headers | View raw


On 5/20/2011 6:39 AM, ziyuang wrote:
> Or can I set the working directory to that one via some functions? I
> searched the documentation but found nothing.
>

To find the directory of the current notebook:

NotebookDirectory[]

Thus you can set the directory to that directory like so.

SetDirectory[NotebookDirectory[]]


-- 
Helen Read
University of Vermont

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Is there any environment variable for the directory containing the currently running source .nb file? Helen Read <readhpr@gmail.com> - 2011-05-21 10:45 +0000

csiph-web