UseShellExecution(Boolean) Method

Definition

Assembly CliInvoke.dll

Configures whether shell execution should be used for the process.

public IProcessConfigurationBuilder UseShellExecution(bool useShellExecution)

Parameters

useShellExecution
Boolean

True to use shell execution, false otherwise.

Returns

IProcessConfigurationBuilder
The same builder instance, with output redirection configured.

Remarks

Using Shell Execution whilst also Redirecting Standard Input will throw an Exception. This is a known issue with the System Process class.