cmd脚本实现查看当前cpu占用 ``` @echo off for /f "tokens=2 delims==" %%a in ('wmic path Win32_PerfFormattedData_PerfOS_Processor get PercentProcessorTime /value^|findstr "PercentProcessorTime"') do ( set UseCPU=%%a ) echo CPU使用率:%UseCPU%%% pause ```