At least concerning the notebook directory there is an easy way:
NotebookDirectory[]
leads to
SetDirectory[NotebookDirectory[]]
Regards,
Yves
Am 12.08.2010 11:31, schrieb Themis Matsoukas:
>> Since the subject of possible enhancements to the FE
>> is being discussed,
>> I wonder if we could determine which feature would be
>> most popular. I
>> have two requests:
>>
>> 1) Infinite undo!
>>
>
> --Even finite undo (with redo) would be great.
>
> --A simple(r) way to change the working directory for input/output operations from the default (root) to the directory of the current notebook. The only way I know how is
>
> SetDirectory[ToFileName[
> Extract[
> "FileName" /. NotebookInformation[EvaluationNotebook[]], {1},
> FrontEnd`FileName]]]
>
> Being incapable of memorizing it, I save this monstrosity in a safe vault and recycle it from notebook to notebook.
>
> Themis
>