2008年6月11日 星期三

指令 Netstat 說明及tasklist,taskkill之應用

Displays protocol statistics and current TCP/IP network connections.

netstat 命令可以顯示下列資訊:
•使用中的 TCP 連線
•台電腦在其上接聽連接埠
•Ethernet 統計資料
•IP 路由表
•IPv 4 統計資料
•IPv 6 統計資料


使用 netstat -a -o 可以列出 process 的 PID,
tasklist 指令可以比對 PID 看是那一支程式,
taskkill 指令可以停止該支程式。

參考資料
HOW TO:判斷哪些程式使用或阻礙 Windows 中的特定傳輸控制通訊協定連接埠
The netstat command can now display process IDs that correspond to active TCP or UDP connections in Windows 2000