@echo off chcp 65001 >nul rem Start the THB API server on the LAN. rem The Android app connects to http://:8787 setlocal set "ROOT=%~dp0.." for /d %%D in ("%ROOT%\mh_src\osf\os-findmy-*") do set "OSF=%%D" if not defined OSF ( echo [error] mh_src\osf\os-findmy-* not found pause exit /b 1 ) set "PY=%OSF%\.venv\Scripts\python.exe" if not exist "%PY%" ( echo [error] os-findmy venv not found: %PY% pause exit /b 1 ) "%PY%" "%~dp0thb_server.py" --host 0.0.0.0 --port 8787 %* pause