Skip to content

Instantly share code, notes, and snippets.

@codeclude
Created November 15, 2018 09:27
PORTKILLER
REM Enter the correct port in place of the PORT inscription
REM eg. for /f "tokens=5" %a in ('netstat -ano ^| findstr ":8080" ^| findstr ^1') do taskkill /f /PID %a
for /f "tokens=5" %a in ('netstat -ano ^| findstr ":PORT" ^| findstr ^1') do taskkill /f /PID %a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment