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

27 lines
610 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
:: 医保程序地址
set WINEXE_CHSPATH=D:/Project/yinyitong-win/yinyitong.exe
:: 医保程序地址
set CHSPATH=D:/Project/CHS
:: jar名称
set NAME=yinyitong-dll-stand
:: 端口号
set PROT=5946
echo 1、关闭端口进程%PROT%
for /f "tokens=1-5" %%i in ('netstat -ano^|findstr ":%PROT%"') do taskkill /pid %%m -t -f
echo 2、启动本地程序
start %CHSPATH%/javaw.exe -Dfile.encoding=utf-8 -Djava.library.path=%CHSPATH% -Dlog.path=%~dp0 -jar %~dp0\%NAME%.jar --server.port=%PROT%
:: 延迟5秒
timeout /NOBREAK /T 5 >nul
echo 3、启动银医通
start %WINEXE_CHSPATH%
exit
::pause