| PowerShellExecutionHostBaseRunProcess Method |
Starts a Windows process in a synchronous fashion.
Namespace:
Mastersign.Bench
Assembly:
BenchLib (in BenchLib.dll) Version: 0.22.0.0 (0.22.0.0)
Syntax public ProcessExecutionResult RunProcess(
BenchEnvironment env,
string cwd,
string executable,
string arguments,
ProcessMonitoring monitoring
)
Public Function RunProcess (
env As BenchEnvironment,
cwd As String,
executable As String,
arguments As String,
monitoring As ProcessMonitoring
) As ProcessExecutionResult
Parameters
- env
- Type: Mastersign.BenchBenchEnvironment
The environment variables of Bench. - cwd
- Type: SystemString
The working directory, to start the process in. - executable
- Type: SystemString
The path to the executable. - arguments
- Type: SystemString
The string with the command line arguments. - monitoring
- Type: Mastersign.BenchProcessMonitoring
A flag to control the level of monitoring.
Return Value
Type:
ProcessExecutionResultAn instance of
ProcessExecutionResult with the exit code
and optionally the output of the process.
Implements
IProcessExecutionHostRunProcess(BenchEnvironment, String, String, String, ProcessMonitoring)See Also