mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2025-01-05 17:42:24 +08:00
27 lines
581 B
Batchfile
27 lines
581 B
Batchfile
|
|
echo "run-push.bat"
|
|
|
|
set EXE_PATH=%1
|
|
set SRC_PATH=%2\\..
|
|
|
|
echo %EXE_PATH% %SRC_PATH%
|
|
|
|
taskkill /im PushServer.exe /t /f
|
|
|
|
timeout /T 1
|
|
|
|
echo "start server: %EXE_PATH%\\PushServer.exe --config=%SRC_PATH%\\examples\\PushDemo\\PushServer\\config.conf"
|
|
|
|
start /b %EXE_PATH%\\PushServer.exe --config=%SRC_PATH%\\examples\\PushDemo\\PushServer\\config.conf
|
|
|
|
timeout /T 3
|
|
|
|
::-------------------------------------------------------------------------------------------------------
|
|
|
|
echo "client: %EXE_PATH%\\PushClient.exe"
|
|
|
|
%EXE_PATH%\\PushClient.exe 5
|
|
|
|
taskkill /im PushServer.exe /t /f
|
|
|