查看主板上内存条的数量
wmic memorychip list brief
查看cpu
wmic cpu list brief
查看物理内存
wmic memphysical list brief
查看逻辑内存
wmic memlogical list brief
查看缓存内存
wmic memcache list brief
查看虚拟内存
wmic pagefile list brief
查看网卡
wmic nic list brief
查看网络协议
wmic netprotocal list brief
从程序列表中查找字符串
C:\Users\CMSZ>tasklist |findstr /s /i "cmd.exe"
cmd.exe 8732 Console 1 16,524 K
tasklist/svc 就可以看到计算机当前正在运行程序
D:\Users\CMSZ\Desktop\短信猫>echo hello,world
hello,world
D:\Users\CMSZ\Desktop\短信猫>echo i will come back
i will come back
D:\Users\CMSZ\Desktop\短信猫>pause
请按任意键继续. . .
2。关闭该命令的回显
PS D:\Users\CMSZ\Desktop\短信猫> cat .\mybat.bat
@echo hello,world
@echo i will come back
pause
PS D:\Users\CMSZ\Desktop\短信猫> .\mybat.bat
hello,world
i will come back
D:\Users\CMSZ\Desktop\短信猫>pause
请按任意键继续. . .
hello,world
i will come back
请按任意键继续. . .