Miner.Responder.WindowsService Assembly > Miner.Responder.WindowsService Namespace > ProgramGroup Class > ExecuteCommand Method : ExecuteCommand(OutputVisibility,String,TimeSpan) Method |
'Declaration Public Overloads Function ExecuteCommand( _ ByVal visibility As OutputVisibility, _ ByVal input As String, _ ByVal timeout As TimeSpan _ ) As String()
'Usage Dim instance As ProgramGroup Dim visibility As OutputVisibility Dim input As String Dim timeout As TimeSpan Dim value() As String value = instance.ExecuteCommand(visibility, input, timeout)
public string[] ExecuteCommand( OutputVisibility visibility, string input, TimeSpan timeout )
The term "ExecuteCommand" refers to sending a string to the StandardInput of the program and waiting for and capturing the response from either StandardOutput or StandardError. A response may (and often does) consist of multiple lines of output, so the definition of what constitutes a complete response is application specific and determined by the Program class.
The ExecuteCommand method on the group will call the ExecuteCommand method on all programs in the Programs collection for the group.
Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)
Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.