Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: FluidCommandRunner Run(params string[])

Declaration

public static FluidCommandRunner Run(
    params string[] args
)

Summary

Executes the specified command using a fluid syntax. Use method chaining to configure any options, then invoke FluidCommandRunner.Go() (or one of its variants) to execute the command. See Remarks.

Parameters

string[]args The command and its arguments, if any. Each value is automatically escaped as needed. See CommandRunner.SetCommand(params string[]) for further information. See CommandRunner.RunRaw(string) for an alternative way to specify the command.

Remarks

The default options are as follows: 0 is the only exit code indicating success; print the command output to the console as-is.

Example: CommandRunner.Run(@"C:\Program Files\Foo\Foo.exe", "-f", @"C:\Some Path\file.txt").SuccessExitCodes(0, 1).OutputNothing().Go();