@echo off
REM BestCDN Run Script - Automatically activates virtual environment

echo BestCDN Runner
echo ==============

REM Check if virtual environment exists
if not exist "venv" (
    echo Error: Virtual environment not found!
    echo Please run install.bat first
    pause
    exit /b 1
)

REM Activate virtual environment
echo Activating virtual environment...
call venv\Scripts\activate.bat

if errorlevel 1 (
    echo Error: Failed to activate virtual environment
    pause
    exit /b 1
)

echo ✓ Virtual environment activated

REM Run the example
echo Running BestCDN example...
python example_usage.py

REM Deactivate virtual environment
call venv\Scripts\deactivate.bat

pause