windows 查找端口对应的运行程序

查看进程是否在运行:
tasklist /nh|find /i "进程名.exe"
ps:双引号中的进程名也可以是部分匹配


杀进程:
taskkill /im 进程名
taskkill /pid 进程序号 -t(结束该进程) -f(强制结束该进程以及所有子进程)
wmic process where name="进程名" call terminate
ntsd -c p -p 进程序号
ps:第一种和第三种可同时关闭多个进程名相同的进程
(原文:http://blog.sina.com.cn/s/blog_610ae7ec0100xdzw.html)

猜你喜欢

转载自kelly-zsl.iteye.com/blog/2084484