@echo off title World Sketcher where python >nul 2>&1 if %errorlevel% neq 0 ( echo [ERROR] Python not found. Install Python 3 first. pause exit /b 1 ) set PORT=8765 if not "%~1"=="" set PORT=%~1 echo. echo World Sketcher echo Port: %PORT% echo Save dir: output\ echo Close this window to stop. echo. start "" cmd /c "timeout /t 2 /nobreak >nul & start http://localhost:%PORT%/sketch.html" python "%~dp0server.py" %PORT%