Process.this

Constructor (variadic version, with environment copy).

Parameters

copyEnv bool

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

args const(mstring)[]

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

void example ( )
{
    auto p1 = new Process(true, "myprogram", "first argument", "second", "third");
    auto p2 = new Process(true, "myprogram \"first argument\" second third");
}

Meta