cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dinesh_redhawk
Level 6

Parsing string

While executing the below code in cmd prompt :
systeminfo | findstr /C:”Total Physical Memory”

it returns the string
“Total Physical Memory:     8,072 MB”


How can i get JUST 8072 ?

parsing Total Physical Memory: , the comma, spaces and MB?

Please help.
I am getting confused and failed multiple times by using strtrim, lists, strgettoken etc...
Labels (1)
0 Kudos
(15) Replies