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

24 lines
452 B
Batchfile
Raw Permalink Normal View History

2025-05-20 18:03:31 +08:00
@echo off
2025-06-12 11:30:33 +08:00
:: 医保程序地址
2025-05-20 18:03:31 +08:00
set CHSPATH=D:/Project/CHS
2025-06-12 11:30:33 +08:00
:: jar名称
2025-05-20 18:03:31 +08:00
set NAME=yinyitong-dll-stand
2025-06-12 11:30:33 +08:00
:: 端口号
2025-05-20 18:03:31 +08:00
set PROT=5946
2025-06-12 11:30:33 +08:00
echo 关闭端口进程:%PROT%
2025-05-20 18:03:31 +08:00
for /f "tokens=1-5" %%i in ('netstat -ano^|findstr ":%PROT%"') do taskkill /pid %%m -t -f
2025-06-12 11:30:33 +08:00
echo 启动:%NAME%
2025-05-20 18:03:31 +08:00
2025-05-22 18:36:38 +08:00
cd %CHSPATH%
start javaw.exe -Dfile.encoding=UTF-8 -Djava.library.path=%CHSPATH% -Dlog.path=%~dp0 -jar %~dp0\%NAME%.jar --server.port=%PROT%
2025-05-20 18:03:31 +08:00
2025-06-12 11:30:33 +08:00
echo 启动完成
2025-05-20 18:03:31 +08:00
2025-05-22 18:36:38 +08:00
exit
::pause