@echo off
setlocal EnableExtensions

set "SOURCE=%LOCALAPPDATA%\Willett\MurtCoDrag\Logs\murtco-drag.jsonl"
set "DESTINATION=%~dp0MurtCo-Pdf-Drag-Logs.jsonl"

if not exist "%SOURCE%" (
  echo No MurtCo PDF Drag diagnostic log exists yet.
  echo Run at least one drag attempt, then try again.
  pause
  exit /b 1
)

copy /Y "%SOURCE%" "%DESTINATION%" >nul
if errorlevel 1 (
  echo ERROR: The diagnostic log could not be copied.
  pause
  exit /b 1
)

echo Diagnostic log copied to:
echo   %DESTINATION%
pause
