using std.process

Graham Fawcett fawcett at uwindsor.ca
Fri Jun 11 12:20:08 PDT 2010


On Fri, 11 Jun 2010 19:09:04 +0000, Philippe Sigaud wrote:

> OK, this is a real newbie question:
> 
> How can I use std.process?
> 
> when I do:
> 
> import std.process;
> 
> void main() {
>     execvp("mkdir", ["test"]);
> }
> 
> nothing happens.
> 
> What am I doing wrong?
> I'm on Vista there, didn't try the equivalent under Linux.

Try giving an absolute path to 'mkdir'. I'm fairly sure that the exec* 
family does not use the PATH environment.

Best,
Graham


More information about the Digitalmars-d-learn mailing list