MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Directory ? Not the current working one !

  • To: mathgroup at smc.vnet.net
  • Subject: [mg72696] Re: [mg72680] Directory ? Not the current working one !
  • From: "Chris Chiasson" <chris at chiasson.name>
  • Date: Tue, 16 Jan 2007 01:59:07 -0500 (EST)
  • References: <200701150959.EAA17862@smc.vnet.net>

You should be able to construct working code from this:
http://support.wolfram.com/mathematica/kernel/interface/notebookdir.html

If you need something that runs in a package when Get is executed, use
$Input (which is an empty string when executed interactively) instead.

On 1/15/07, Laura Dabene <laura.dabene at yahoo.it> wrote:
> Hi
>
> I need a way to detect the directory a notebook has been saved in,
> but none gotten by mean of ?*Directory* seems to be useful.
>
> As example, if MyNotebook.nb was saved in c:\MyDirectory
> I would love to get
>
> In  = WhereDoIDwell[]
> Out = "c:\MyDirectory"
>
> instead of the current working directory as given by Directory[].
>
> Any hints ? Thanks you a lot.
>
> Laura
>
>
>


-- 
http://chris.chiasson.name/


  • Prev by Date: Convolution Integral
  • Next by Date: Re: plot question
  • Previous by thread: Directory ? Not the current working one !
  • Next by thread: Re: Directory ? Not the current working one !