I implemented the setter method for the working directory like that :
CRTLibrary>>_chdir: dir
"Set the current working directory to dir."
<cdecl: sdword _chdir lpstr>
^self invalidCall
File>>workingDirectory: dir
"Set the current working directory."
^(CRTLibrary default _chdir: dir) = 0
In article <40d0c021$
[hidden email]>, Terry Arnold wrote:
> From: "Terry Arnold" <
[hidden email]>
> Newsgroups: comp.lang.smalltalk.dolphin
> Subject: How to change current working directory
> Date: Wed, 16 Jun 2004 14:39:17 -0700
>
> I know about File >>workingDirectory but how does one *change* the current
> working directory from within a Dolphin app? I need to run (#_spawnvp)
> programs from within specified directories, so I need to "go there" first
> and then call #_spawnvp:
>
----
Dominique Dartois