Click or drag to resize

CommandExecute(String, String, String, String, Int32) Method

Executes a command line operation and returns true if there was no standard error reported.

Namespace: GSF.Console
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public static bool Execute(
	string fileName,
	string arguments,
	out string standardOutput,
	out string standardError,
	out int exitCode
)
View Source

Parameters

fileName  String
Command line file name to execute.
arguments  String
Command line arguments to use, if any.
standardOutput  String
Any standard output reported by the command line operation.
standardError  String
Any standard error reported by the command line operation.
exitCode  Int32
Exit code of the process, assuming process successfully completed.

Return Value

Boolean
true if there was no standard error reported; otherwise, false.
Remarks
This function waits indefinitely for the command line operation to complete.
See Also