Created
April 16, 2020 14:51
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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