See http://support.wolfram.com/Kernel/FE/notebookdir.html.
The only fully correct way to do this is to use SetDirectory[] (but, if
you follow the above FAQ, you at least don't have to hard-code a path
inside SetDirectory). While the 3.0 behavior was often exploited by
people like yourself, it was by no means reliable. I can think of several
ways this behavior could have been defeated in common circumstances...for
example, if you have multiple notebooks from multiple directories open,
which directory would be chosen?
Sincerely,
John Fultz
jfultz at wolfram.com
User Interface Group
Wolfram Research, Inc.
On Sat, 7 Jul 2001 02:25:52 -0400 (EDT), Roberto Brambilla wrote:
>Dear Math-friends
>
>when I open Mathematica(4.1) double clicking on a notebook icon
>I'd like that the directory in use is the clicked notebook directory,
>as appened to me with Mathematica(3.0).
>How can I do it appens again automatically, avoiding SetDirectory[..]
etc.
>Thanks in advance,
>
>Rob.
>Roberto Brambilla
>CESI
>Via Rubattino 54
>20134 Milano
>tel +39.2.2125.5875
>fax +39.2.2125.610
>rlbrambilla at cesi.it
>