Created
May 22, 2018 15:02
-
-
Save agtcooke/217b8014826381cf59854b3930fdf7fc to your computer and use it in GitHub Desktop.
kill_port.bat
This file contains hidden or 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 | |
for /f "tokens=5" %%a in ('netstat -aon ^| findstr %1 ^| findstr LISTENING') do taskkill /pid %%a /f && echo killed PID %%a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment