Skip to content

Instantly share code, notes, and snippets.

@iambigd
Created March 30, 2015 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iambigd/fcc2c5be78613755b204 to your computer and use it in GitHub Desktop.
Save iambigd/fcc2c5be78613755b204 to your computer and use it in GitHub Desktop.
殺掉佔用8080 port的process
rem @echo off
FOR /F "tokens=5" %%P IN ('netstat -ano ^| findstr " 8080.*LISTENING " ') DO TaskKill.exe /PID %%P /T /F
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment