@echo off set port=60000 for /f "tokens=1-5" %%i in ('netstat -ano^|findstr ":%port%"') do taskkill /pid %%m /f java -jar Sip2server.jar