@echo off
@echo.
@echo ==========【信息】 运行Web工程 ==========
@echo.
@echo off
set port=2333
for /f “tokens=1-5” %%i in (‘netstat -ano^|findstr “:%port%”’) do (
echo kill the process %%m who use the port
taskkill /pid %%m -t -f
goto start
)
:start
START “IFC_MOM_TEST_2333” java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8012 -Dfile.encoding=utf-8 ifcmom-admin.jar
exit