@echo off setlocal cd /d "%~dp0" set "PY=%~dp0python\py\python.exe" set "MAIN=%~dp0main.py" echo [InsideOut] Starting... if not exist "%PY%" ( echo [InsideOut] ERROR: Python not found: echo %PY% pause exit /b 1 ) "%PY%" "%MAIN%" if errorlevel 1 ( echo [InsideOut] Finished with errors. Exit code: %ERRORLEVEL% ) else ( echo [InsideOut] Done. ) echo Press any key to close this window. pause >nul