From 226828325ba3f362468ee0788caa938834bdcf0e Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Mon, 8 Jun 2026 23:40:47 +0200 Subject: [PATCH] Rename path variable --- Run.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Run.bat b/Run.bat index 2832c51..396d4f1 100644 --- a/Run.bat +++ b/Run.bat @@ -19,17 +19,17 @@ if exist "%wtDefaultPath%" ( set "wtPath=" ) -set "SCRIPT_SHORT_PATH=\"%~dp0Win11Debloat.ps1\"" +set "SCRIPT_PATH=\"%~dp0Win11Debloat.ps1\"" :: Launch script if defined wtPath ( call :Log Launching Win11Debloat.ps1 with Windows Terminal... - PowerShell -Command "Start-Process -FilePath '%wtPath%' -ArgumentList 'PowerShell -NoProfile -ExecutionPolicy Bypass -File %SCRIPT_SHORT_PATH%' -Verb RunAs" >> "%logFile%" || call :Error "PowerShell command failed" + PowerShell -Command "Start-Process -FilePath '%wtPath%' -ArgumentList 'PowerShell -NoProfile -ExecutionPolicy Bypass -File %SCRIPT_PATH%' -Verb RunAs" >> "%logFile%" || call :Error "PowerShell command failed" call :Log Script execution passed successfully to Win11Debloat.ps1 ) else ( echo Windows Terminal not found. Using default PowerShell instead... call :Log Windows Terminal not found. Using default PowerShell to launch Win11Debloat.ps1... - PowerShell -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File %SCRIPT_SHORT_PATH%' -Verb RunAs}" >> "%logFile%" || call :Error "PowerShell command failed" + PowerShell -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File %SCRIPT_PATH%' -Verb RunAs}" >> "%logFile%" || call :Error "PowerShell command failed" call :Log Script execution passed successfully to Win11Debloat.ps1 )