@echo off setlocal for %%I in ("%~dp0..") do set "APP_DIR=%%~fI" set "LOG_DIR=%APP_DIR%\logs" if not exist "%LOG_DIR%" mkdir "%LOG_DIR%" start "RC Timing Backend" /min cmd /c "cd /d \"%APP_DIR%\" && npm start >> \"%LOG_DIR%\backend.log\" 2>&1" echo [OK] Backend started in background echo URL: http://localhost:8081 echo Log: %LOG_DIR%\backend.log endlocal