system vs. execvp ?

Peter Sommerfeld noreply at rubrica.at
Sat Sep 22 15:53:48 PDT 2012


  Hi!

This works as expected:

   string cmd = "dmd src/xyz.d";
   int i = system(cmd);

But this not:

   string[] cmd;
   cmd ~= "src/xyz.d";
   int i = execvp("dmd",cmd);

Of course, dmd is in PATH (Win7).

What is wrong here?

tia Peter


More information about the Digitalmars-d-learn mailing list