cmd

1、显示所有进程信息

C:\Documents and Settings\Administrator>wmic

wmic:root\cli>process  -

2、只查看指定程序路径及PID

C:\Documents  and Settings\Administrator>wmic process where caption="alg.exe" get  ExecutablePath^,HandleExecutablePath                HandleC:\WINDOWS\System32\alg.exe  1892

3、杀掉QQ进程

taskkill /f /im qq.exe