Skip to content

Instantly share code, notes, and snippets.

@krlittle
Created April 16, 2020 14:51
Show Gist options
  • Save krlittle/c02cf0aac411f8433f2fb1f479666071 to your computer and use it in GitHub Desktop.
Save krlittle/c02cf0aac411f8433f2fb1f479666071 to your computer and use it in GitHub Desktop.
[Windows batch] - so I don't have to remember how to unblock a port in Windows
ECHO OFF
set /p port=Which port is blocked?
netstat -ano | findstr %port%
set /p pid=What is the pid of the process you would like to terminate?
taskkill /pid %pid% /F
PAUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment