@echo off setlocal cd /d "%~dp0" if not exist capture.toml ( echo No capture.toml found. echo Copy capture.toml.example to capture.toml and adjust the paths first. pause exit /b 1 ) if not exist target\release\capture.exe ( echo Building capture binary ... cargo build --release --bin capture if errorlevel 1 ( pause exit /b 1 ) ) target\release\capture.exe run echo. pause