@echo off
REM Change to the batch file directory
cd /d %~dp0

echo Serving files from: %cd%

REM Start the Python HTTP server on port 8000 in a new window (so this script continues)
start "Python Server" cmd /k python -m http.server 8000

REM Wait 2 seconds for the server to start
timeout /t 2 /nobreak >nul

REM Open the browser to the local server URL (not the file!)
start "" "http://localhost:8000/"

pause
