|   | Command Class | 
        
        
            Defines methods related to command line operations
            
        
          
             Inheritance Hierarchy
Inheritance Hierarchy
         
        
        
        Namespace: GSF.ConsoleAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.257-beta+00aa2366fbb9ec75f636ebc7cfa610e3826a727c
 Syntax
Syntaxpublic static class Command
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type Command = class end
GSF.Console.Command = function();
Type.createClass(
	'GSF.Console.Command');
The Command type exposes the following members.
 Properties
Properties|  | Name | Description | 
|---|
|   | CustomProcessStartInfo | Customizable Command.ProcessStartInfo to set prior to Creating or Executing the CommandProcess.
            The original Process.StartInfo defaults are used when Command.CustomProcessStartInfo is null.
            Command.CustomProcessStartInfo is null to be consistent with earlier implementations.
            Example to create a Command.CustomProcessStartInfo with Gemstone default StartInfo but without creating a Window:
            GSF.Core.Console.Command.CustomProcessStartInfo = new()
            {
                UseShellExecute = false,
                RedirectStandardError = true,
                RedirectStandardOutput = true,
                CreateNoWindow = true
            }; | 
Top Methods
Methods|  | Name | Description | 
|---|
|   | Execute(String, String, Int32) | Executes a command line operation and returns its standard output and exit code or throws an exception with the standard error. | 
|   | Execute(String, String, String, String, Int32) | Executes a command line operation and returns true if there was no standard error reported. | 
|   | Execute(String, String, String, String, Boolean, Int32, Int32) | Executes a command line operation and returns true if there was no standard error reported. | 
|  | ShellDecode | Decodes a command line parameter previously encoded by ShellEncode(String). | 
|  | ShellEncode | Shell encodes a command line parameter by converting "\" to "\\". | 
Top See Also
See Also