-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_dbServer.bat
More file actions
40 lines (34 loc) · 1.12 KB
/
Copy pathrun_dbServer.bat
File metadata and controls
40 lines (34 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@echo off
:: ==============================================================================
:: run_dbServer.bat
:: 역할: TestDBServer.exe (DB 연동 서버)를 새 창으로 실행한다.
:: run_dbServer.ps1 의 배치 파일 버전.
:: 게임 서버(TestServer) 보다 먼저 실행해야 한다.
::
:: 사용법:
:: run_dbServer.bat [Config] [Platform] [DbPort]
::
:: 인자 (순서대로, 모두 선택):
:: %1 Config : 빌드 구성 (기본값: Debug)
:: %2 Platform : 빌드 플랫폼 (기본값: x64)
:: %3 DbPort : 수신 포트 (기본값: 18002)
:: ==============================================================================
setlocal
set "CONFIG=Debug"
set "PLATFORM=x64"
set "DB_PORT=18002"
if not "%~1"=="" set "CONFIG=%~1"
if not "%~2"=="" set "PLATFORM=%~2"
if not "%~3"=="" set "DB_PORT=%~3"
set "ROOT=%~dp0"
set "BIN=%ROOT%%PLATFORM%\%CONFIG%"
set "DB_EXE=%BIN%\TestDBServer.exe"
if not exist "%DB_EXE%" (
echo Executable not found: %DB_EXE%
exit /b 1
)
echo Starting DB server: %DB_EXE%
echo Port: %DB_PORT%
start "TestDBServer" /D "%BIN%" "%DB_EXE%" -p %DB_PORT%
endlocal
exit /b 0