From 899edfc9c6d42d90fe3757c4af761972c11ee7e5 Mon Sep 17 00:00:00 2001 From: tylerhekman Date: Sun, 14 Sep 2025 03:18:58 -0700 Subject: [PATCH] Removed escaped double quotes that caused incorrect parsing for paths with spaces (#322) --- Run.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Run.bat b/Run.bat index 6c17e9b..b9fac5e 100644 --- a/Run.bat +++ b/Run.bat @@ -5,10 +5,10 @@ set "wtScoopPath=%USERPROFILE%\scoop\apps\windows-terminal\current\wt.exe" :: Launch the script in Windows Terminal if installed, otherwise use default PowerShell. if exist "%wtDefaultPath%" ( - PowerShell -Command "Start-Process -FilePath '%wtDefaultPath%' -ArgumentList 'PowerShell -NoProfile -ExecutionPolicy Bypass -File \"\"%~dp0Win11Debloat.ps1\"\"' -Verb RunAs" + PowerShell -Command "Start-Process -FilePath '%wtDefaultPath%' -ArgumentList 'PowerShell -NoProfile -ExecutionPolicy Bypass -File ""%~dp0Win11Debloat.ps1""' -Verb RunAs" ) else if exist "%wtScoopPath%" ( - PowerShell -Command "Start-Process -FilePath '%wtScoopPath%' -ArgumentList 'PowerShell -NoProfile -ExecutionPolicy Bypass -File \"\"%~dp0Win11Debloat.ps1\"\"' -Verb RunAs" + PowerShell -Command "Start-Process -FilePath '%wtScoopPath%' -ArgumentList 'PowerShell -NoProfile -ExecutionPolicy Bypass -File ""%~dp0Win11Debloat.ps1""' -Verb RunAs" ) else ( echo Windows Terminal not found, using default PowerShell... - PowerShell -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File \"\"%~dp0Win11Debloat.ps1\"\"' -Verb RunAs}" + PowerShell -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""%~dp0Win11Debloat.ps1""' -Verb RunAs}" )