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


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

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

From Peter Pein <petsie@dordos.net>
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:49 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ir85be$bhe$1@smc.vnet.net> (permalink)

Show all headers | View raw


Am 20.05.2011 12:39, schrieb ziyuang:
> Or can I set the working directory to that one via some functions? I
> searched the documentation but found nothing.
> 
Hi,

 if you've got an already saved notebook, then NotebookDirectory[] will
give you the path. If you started a new notebook with Ctrl-N, then
you'll get:
NotebookDirectory::nosv: The notebook NotebookObject[...] is not saved.

Peter

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? Peter Pein <petsie@dordos.net> - 2011-05-21 10:49 +0000

csiph-web