Skip to content

Instantly share code, notes, and snippets.

@bulain
Created July 19, 2011 01:08
Show Gist options
  • Save bulain/1091085 to your computer and use it in GitHub Desktop.
Save bulain/1091085 to your computer and use it in GitHub Desktop.
kill process in windows
@echo off
@setlocal enabledelayedexpansion
for /F "tokens=* delims=;" %%i in ('netstat -nao') do call :keller %%i
:keller
set a=%2
echo %a%
if "%a%" equ "0.0.0.0:8081" (taskkill /F /PID %5)
shift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment