What would be the best option to find a string value in the output without placing the value into a text file?
for instance, I run the command:
tasklist /NH /FI "pid eq 4"
has the result:
System 4 Services 0 7,972 K
I would like to get the string value " 4 " set to a value.
Find Specific String and place it in a variable
Moderator: DosItHelp
Re: Find Specific String
A FOR /F loop with the tokens=2.