Code: Select all
for /f "usebackq tokens=5 delims=: " %%i in ('pstat.exe ^| findstr /i "memory"') do echo %%i
If this not works, remove the usebackq option from FOR /F switch.
Antonio
Code: Select all
for /f "usebackq tokens=5 delims=: " %%i in ('pstat.exe ^| findstr /i "memory"') do echo %%i
Code: Select all
C:\Temp> ( if not exist test.txt ( echo "not there" ) else echo "it's there" ) & echo "let's do the next things"