I am creating a simple script that outputs the current user logged in, CPU usage for the current system and the available memory?
I have managed to get the current user/
@echo off setlocal enabledelayedexpansion set Times=0 for /f "skip=1" %%p in ('wmic cpu get loadpercentage') do ( set Cpusage!Times!=%%p set /A Times=!Times! + 1 ) echo Percentage = %Cpusage0% pause