Skip to content

Instantly share code, notes, and snippets.

@crossjs
Last active January 4, 2022 01:35
Show Gist options
  • Save crossjs/3d48d26396d9bbca2c9844df7008c994 to your computer and use it in GitHub Desktop.
Save crossjs/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
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