@echo off title WinRepair - DEBUG MODE :: ═══════════════════════════════════════════════════════════════ :: WinRepair Debug Launcher :: Runs WinRepair with a VISIBLE console for error tracking :: Debug log saved to WinRepair_Debug.log :: ═══════════════════════════════════════════════════════════════ :: Check for admin rights net session >nul 2>&1 if %errorlevel% neq 0 ( echo Requesting Administrator privileges... powershell -NoProfile -Command "Start-Process cmd.exe -ArgumentList '/c \"\"%~f0\"\"' -Verb RunAs" exit /b ) :: We are admin — change to script directory and run with visible console pushd "%~dp0" chcp 65001 >nul echo ============================================ echo WinRepair DEBUG MODE echo Console output + WinRepair_Debug.log echo ============================================ echo. powershell.exe -NoProfile -NoExit -ExecutionPolicy Bypass -File ".\WinRepair_Debug.ps1" popd