hello,
i need to get specific word from cmd check below image
i need to get kmatkar from screen.
i am using get visisble text activity and getting result in variable.
how can i get. that name will vary with query but will always come in same place only value will chnage
help me on same.
Hi @Mathkar_kunal
Pls check the below thread might be helpful
Hi @itsahmedfiroz
– We use screen scrapping option uipath design menu in our studio with which we can scrape the text in cmd window
–Then we can use string manipulation to get the value of subnetMask like this
use screen scrapping and the get the output as a variable of type string named out_text
use a assign activity like this
out_string_array = out_text.Split(Environment.Newline.ToArray)
use a for each row loop and pass the above variable as input and change the type argument in for each…
Happy Automation
not able to get proper value or outof bounds error
can you please give me correct regex
Hi @Mathkar_kunal
I just try to extract the hostname so i used below steps:
Drag Invoke PowerShell
CommandText → "hostname"
IsScript → False
TypeArgument → String
Output → result (IEnumerable)
Add Assign
hostName = String.Join("", result).Trim
so you can just modify with your cmd and verify .