Process.this

Constructor (variadic version, with environment copy).

Parameters

copyEnv bool

if true, the environment is copied from the current process.

args const(char[])[]

array of strings with the process' arguments. If there is exactly one argument, it is considered to contain the entire command line including parameters. If you pass only one argument, spaces that are not intended to separate parameters should be embedded in quotes. The arguments can also be empty. Note: The class will use only slices, .dup when necessary.

Examples

auto p = new Process(true, "myprogram", "first argument", "second", "third");
auto p = new Process(true, "myprogram \"first argument\" second third");

Meta