@echo off
setlocal
set "HERE=%~dp0"
if "%HERE:~-1%" == "\" set "HERE=%HERE:~0,-1%"
set "CAPTURE_ROOT=%HERE%"
set "BIN=%HERE%\bin"
if not exist "%BIN%\capture.exe" (
    echo capture.exe not found in "%BIN%"
    exit /b 1
)
cd /d "%BIN%"
start "" "capture.exe" %*
