--------------------------------------------- IP,端口
每秒ping ping 127.0.0.1 -t
每秒ping,显示正常项 ping 127.0.0.1 -t | findstr "TTL"
每秒ping,显示异常项 ping 127.0.0.1 -t | findstr "无法"
每秒ping,写到文件 ping 127.0.0.1 -t > d:\aa.txt
看端口 netstat
查找指定端口进程占用 netstat -aon|findstr "端口ID"
查看指定进程程序名 tasklist|findstr "进程ID"
--------------------------------------------- 程序名
打开服务 services.msc
远程桌面 mstsc
组策略 gpedit.msc
本地安全策略 spcpol.msc
--------------------------------------------- cmd
目录文件名保存 dir /B
打开文件夹 explorer E:\
强制关闭进程 taskkill /f /im abc.exe
终止进程和子程序 taskkill /T /IM abc.exe
拷贝改名并覆盖文件 copy c:\a.txt d:\b.exe /y
服务,停止 net stop "服务名"
服务,启动 net start "服务名"
参考:
http://www.jb51.net/article/50384.htm