@echo off
chcp 65001 >nul
setlocal
set "SCRIPT_DIR=%~dp0"
if exist "%SCRIPT_DIR%ONE.DownloadBridgeLauncher.exe" (
    "%SCRIPT_DIR%ONE.DownloadBridgeLauncher.exe" start --root "%SCRIPT_DIR%."
    exit /b %errorlevel%
)
if exist "%SCRIPT_DIR%DownloadBridgeLauncher\ONE.DownloadBridgeLauncher.csproj" (
    dotnet run --project "%SCRIPT_DIR%DownloadBridgeLauncher\ONE.DownloadBridgeLauncher.csproj" -- start --root "%SCRIPT_DIR%."
    exit /b %errorlevel%
)
echo ONE.DownloadBridgeLauncher 없음: "%SCRIPT_DIR%ONE.DownloadBridgeLauncher.exe"
exit /b 1
