I am trying to split the following into two strings.
\"SERVER1.DOMAIN.COM Running\"
For this I use the code.
Dim Str As Str
Use this way:
Dim line As String = "SERVER1.DOMAIN.COM Running" Dim separators() As String = {"Domain:", "Mode:"} Dim result() As String result = line.Split(separators, StringSplitOptions.RemoveEmptyEntries)