CommandExecute(String, String, String, String, Int32) Method
Executes a command line operation and returns true if there was no standard error reported.
Namespace: Gemstone.ConsoleAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public static bool Execute(
string fileName,
string arguments,
out string standardOutput,
out string standardError,
out int exitCode
)
Public Shared Function Execute (
fileName As String,
arguments As String,
<OutAttribute> ByRef standardOutput As String,
<OutAttribute> ByRef standardError As String,
<OutAttribute> ByRef exitCode As Integer
) As Boolean
public:
static bool Execute(
String^ fileName,
String^ arguments,
[OutAttribute] String^% standardOutput,
[OutAttribute] String^% standardError,
[OutAttribute] int% exitCode
)
Gemstone.Console.Command.Execute = function(fileName, arguments, standardOutput, standardError, exitCode);
- 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.
Booleantrue if there was no standard error reported; otherwise,
false.
This function waits indefinitely for the command line operation to complete.