mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-11-26 07:26:18 +01:00
fix: update log file path to use %LOCALAPPDATA% for consistency
This commit is contained in:
@@ -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%" (
|
||||||
|
|||||||
Reference in New Issue
Block a user