yinyitong-zhongyuyuan-dll-s.../doc/win/yinyitong-dll-stand.bat

21 lines
388 B
Batchfile

@echo off
:: 医保程序地址
set CHSPATH=D:/Project/CHS
:: jar名称
set NAME=yinyitong-dll-stand
:: 端口号
set PROT=5946
echo 关闭%PROT%端口进程
for /f "tokens=1-5" %%i in ('netstat -ano^|findstr ":%PROT%"') do taskkill /pid %%m -t -f
echo 启动%NAME%
start javaw -jar %~dp0\%NAME%.jar --server.port=%PROT% -Dfile.encoding=UTF-8 -Djava.library.path=%CHSPATH%
echo 启动完成
::exit
pause