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
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
Follow this approach.
Split the string
linesArray = input_text.Split(New String() {Environment.NewLine}, StringSplitOptions.RemoveEmptyEntries)
Datatype of linesArray
should be Array of String
strStatus = linesArray(1).Split(" "c)(0).Trim()
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.