Total Physical Memory for /f « tokens=3-6 » %a in (‘systeminfo ^| findstr /B /C: »Total Physical Memory »‘) do @echo %b