This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Parsing string
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 21, 2017
09:39 AM
Parsing string
While executing the below code in cmd prompt :
systeminfo | findstr /C:”Total Physical Memory”
it returns the string
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...
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...
(15) Replies