mirror of
https://github.com/ZenDeuo/WinRepair.git
synced 2026-06-22 01:40:59 +01:00
Initial upload of WinRepair in its current working, fully featured state! + Includes Debugging Scripts.
28 lines
1.1 KiB
Batchfile
28 lines
1.1 KiB
Batchfile
@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
|