Process.this

Constructor (variadic version). Note that by default, the environment will not be copied.

Parameters

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("myprogram", "first argument", "second", "third");
    auto p2 = new Process("myprogram \"first argument\" second third");
}

Meta