running a command in a directory using std.process

simendsjo simendsjo at gmail.com
Thu Oct 24 00:06:20 PDT 2013


On Thursday, 24 October 2013 at 06:25:40 UTC, Benjamin Thaut 
wrote:
> As far as I can tell std.process can only run commands in the 
> working directory of the currently executing function. I want 
> to execute a certain program inside a subdirectory on windows 
> and can't get it to work:
>
> myproject
>  |- subdir
>
> So my executable has "myproject" as working directory. And I 
> want to execute "dmd" with "subdir" as working directory.

Isn't it possible to execute a command like "cd subdir && dmd"?


More information about the Digitalmars-d-learn mailing list