fix: update log file path to use %LOCALAPPDATA% for consistency

This commit is contained in:
Jeffrey
2026-10-18 22:46:26 +02:00
parent 73834839ff
commit a454bf92a3
+3 -2
View File
@@ -4,10 +4,11 @@ setlocal
:: Set Windows Terminal installation paths. (Default and Scoop installation) :: Set Windows Terminal installation paths. (Default and Scoop installation)
set "wtDefaultPath=%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe" set "wtDefaultPath=%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe"
set "wtScoopPath=%USERPROFILE%\scoop\apps\windows-terminal\current\wt.exe" set "wtScoopPath=%USERPROFILE%\scoop\apps\windows-terminal\current\wt.exe"
set "logFile=%~dp0Logs\Win11Debloat-Run.log" set "logDir=%LOCALAPPDATA%\Win11Debloat\Logs"
set "logFile=%logDir%\Win11Debloat-Run.log"
:: Ensure Logs folder exists :: Ensure Logs folder exists
if not exist "%~dp0Logs" mkdir "%~dp0Logs" if not exist "%logDir%" mkdir "%logDir%"
:: Determine which terminal exists :: Determine which terminal exists
if exist "%wtDefaultPath%" ( if exist "%wtDefaultPath%" (