@echo off title Photon Feeder Mk2 Debug Monitor :: Check if Python is available python --version >nul 2>&1 if errorlevel 1 ( echo Error: Python not found in PATH echo Please install Python from https://python.org pause exit /b 1 ) :: Check if pyserial is installed python -c "import serial" >nul 2>&1 if errorlevel 1 ( echo Installing pyserial... pip install pyserial if errorlevel 1 ( echo Error: Failed to install pyserial pause exit /b 1 ) ) :: Run the monitor cd /d "%~dp0" python feeder_monitor.py %* pause