start.bat
624 Bytes
@echo off
rem Store edge client - double click to open the menu (Chinese text is printed by Python).
rem Extra args are passed to main.py, e.g. start.bat check
cd /d "%~dp0"
if not exist "%~dp0config.ini" copy "%~dp0config.example.ini" "%~dp0config.ini" >nul
if exist "%~dp0python38\python.exe" goto run
echo [ERROR] python38 folder not found. Please unzip the WHOLE package, do not move files out.
pause
exit /b 3
:run
set PYTHONNOUSERSITE=1
"%~dp0python38\python.exe" "%~dp0main.py" %*
set RC=%errorlevel%
echo.
echo ===== exit code %RC% (0=ok 2=failed 3=config error) log: %~dp0logs\edge.log =====
pause
exit /b %RC%