@echo off
echo Starting File System - Odoo Sync Service
echo ========================================
echo.

REM Check if Python is available
python --version >nul 2>&1
if errorlevel 1 (
    echo Error: Python not found. Please install Python.
    pause
    exit /b 1
)

REM Check if required packages are installed
echo Checking dependencies...
python -c "import watchdog" >nul 2>&1
if errorlevel 1 (
    echo Installing required packages...
    pip install -r requirements_watcher.txt
)

echo Starting file watcher service...
echo Monitoring current month folder only (more efficient)
echo Example: D:\Customer Docs\2025\08 - August\
echo.
echo Press Ctrl+C to stop the service
echo.

python file_watcher_service.py

pause