@echo off title Python Server Starter :: 1. Force directory to match this batch file's location cd /d "%~dp0" :: 2. Check Python py --version >nul 2>&1 if %errorlevel% neq 0 ( echo ERROR: Python not found. Install from python.org pause exit /b ) :: 3. Check for the CORRECT filename (Case Sensitive) if not exist "Dragable_Cams.html" ( echo ERROR: Dragable_Cams.html not found in %cd% echo Please ensure the file is in this folder. pause exit /b ) echo File found. Starting server... :: 4. Start Server start "" /min py -m http.server 8000 :: 5. Wait and Open timeout /t 2 /nobreak >nul start "" "http://localhost:8000/Dragable_Cams.html" echo Server started. Keep this window open. pause