@echo off REM Start the file watcher for automatic uploads REM Usage: start-watcher.bat [optional-watch-directory] REM Get the directory where this script is located set SCRIPT_DIR=%~dp0 set PROJECT_DIR=%SCRIPT_DIR%.. REM Change to project directory to ensure .env is found cd /d "%PROJECT_DIR%" REM Run the file watcher if "%~1"=="" ( REM No arguments - use OBS_RECORDING_DIR from .env python -m obs_uploader.file_watcher ) else ( REM Use provided directory python -m obs_uploader.file_watcher "%~1" )