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


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

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

Started byHelen Read <readhpr@gmail.com>
First post2011-05-21 10:45 +0000
Last post2011-05-21 10:45 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  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

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

FromHelen Read <readhpr@gmail.com>
Date2011-05-21 10:45 +0000
SubjectRe: Is there any environment variable for the directory containing the currently running source .nb file?
Message-ID<ir853f$bah$1@smc.vnet.net>
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

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web