转载自 http://www.voidcn.com/article/p-puzxapre-bua.html 比较有用的关键命令 1、查看内存占用情况 wmic OS get FreePhysicalMemory 2、查看系统内存总数 wmic ComputerSystem get TotalPhysicalMemory 3、查看CPU占用情况 wmic cpu get loadpercentage 实际应用,做个监测cpu占用的bat,后期加上日期,加上ping计时输出到txt就可作为监控日志了 @for /f "skip=1" %p in ('wmic cpu get loadpercentage') do @echo %p%