UtilitiesGetExecutableOutput Method |
Run an executable, wait for it to exit, and return its output as a string.
NOTE: Uses CreateProcess, so you cannot launch applications which require Elevation.
Namespace: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public static string GetExecutableOutput(
string sExecute,
string sParams,
out int iExitCode
)
Public Shared Function GetExecutableOutput (
sExecute As String,
sParams As String,
<OutAttribute> ByRef iExitCode As Integer
) As String
public:
static String^ GetExecutableOutput(
String^ sExecute,
String^ sParams,
[OutAttribute] int% iExitCode
)
Parameters
- sExecute
- Type: SystemString
Fully-qualified filename of file to Execute - sParams
- Type: SystemString
Command-line parameters to pass - iExitCode
- Type: SystemInt32
Exit code returned by the executable
Return Value
Type:
StringString containing the standard-output of the executable
See Also