|
CommandExecute(String, String, String, String, Boolean, Int32, Int32) Method
|
Executes a command line operation and returns true if there was no standard error reported.
Namespace: GSF.ConsoleAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax static member Execute :
fileName : string *
arguments : string *
standardOutput : string byref *
standardError : string byref *
processCompleted : bool byref *
exitCode : int byref *
timeout : int -> bool
GSF.Console.Command.Execute = function(fileName, arguments, standardOutput, standardError, processCompleted, exitCode, timeout);
View SourceParameters
- 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.
- processCompleted Boolean
- Flag that determines if process completed or timed-out. This is only relevant if timeout is not -1.
- exitCode Int32
- Exit code of the process, assuming process successfully completed.
- timeout Int32
- Timeout, in milliseconds, to wait for command line operation to complete. Set to Infinite, i.e., -1, for infinite wait.
Return Value
Booleantrue if there was no standard error reported; otherwise,
false.
See Also