Created
July 19, 2011 01:08
-
-
Save bulain/1091085 to your computer and use it in GitHub Desktop.
kill process in windows
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 | |
@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