Last active
January 4, 2022 01:35
-
-
Save vvenv/3d48d26396d9bbca2c9844df7008c994 to your computer and use it in GitHub Desktop.
Kill a Process by Looking up the Port being used by it from a .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
C:\Users\username>netstat -o -n -a | findstr 0.0:3000 | |
TCP 0.0.0.0:3000 0.0.0.0:0 LISTENING 3116 | |
C:\Users\username>taskkill /F /PID 3116 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment