Filter and get text + cmd line

I scrape text like this from cmd line.

C:\Users\Test>

Status Name Display Name


Stopped Tomcat Apache tomcat

I need to get the text below the status. For example here it I need to get “Stopped”. How to get that ?

Image of text

@Sairam_RPA,

Follow this approach.

  1. Split the string
linesArray = input_text.Split(New String() {Environment.NewLine}, StringSplitOptions.RemoveEmptyEntries)

Datatype of linesArray should be Array of String

  1. Split the second line and get status
strStatus = linesArray(1).Split(" "c)(0).Trim()
1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.