Skip to content

Commit

Permalink
fix: escape spaces in paths correctly (#109)
Browse files Browse the repository at this point in the history
fixes for canary build 26016
  • Loading branch information
ionuttbara authored Dec 15, 2023
2 parents 5ba2df4 + 5c9bdf3 commit f00feee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Script_Run.bat
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ goto :eof
:removedef
cls
echo Killing Tasks...
for /f "delims=" %%i in (Remover\TKL.txt) do (GetTrustedInstaller.exe "C:\Windows\System32\taskkill.exe /f /im "%%i"") >nul
for /f "delims=" %%i in (Remover\TKL.txt) do (GetTrustedInstaller.exe "C:\Windows\System32\taskkill.exe /f /im ""%%i""") >nul
cls
echo Removing Windows Security UWP...
for /d %%f in ("C:\Program Files\WindowsApps\Microsoft.SecHealthUI*") do (GetTrustedInstaller.exe "C:\Windows\System32\cmd.exe /k rmdir /s /q "%%f"") >nul
for /d %%f in ("C:\Program Files\WindowsApps\Microsoft.SecHealthUI*") do (GetTrustedInstaller.exe "C:\Windows\System32\cmd.exe /k rmdir /s /q ""%%f""") >nul
cls
echo Applying Registry Files...
for /r %%k in (Remover\REGS\*.reg) do (GetTrustedInstaller.exe "C:\Windows\regedit.exe /s "%%k"") >nul
for /r %%k in (Remover\REGS\*.reg) do (GetTrustedInstaller.exe "C:\Windows\regedit.exe /s ""%%k""") >nul
cls
echo Removing Windows Defender/Security Components Files...
for /f "delims=" %%i in (Remover\FDL.txt) do (GetTrustedInstaller.exe "C:\Windows\System32\cmd.exe /k del /f /q "%%i"") >nul
for /f "delims=" %%i in (Remover\DDL.txt) do (GetTrustedInstaller.exe "C:\Windows\System32\cmd.exe /k rmdir /s /q "%%i"") >nul
for /f "delims=" %%i in (Remover\FDL.txt) do (GetTrustedInstaller.exe "C:\Windows\System32\cmd.exe /k del /f /q ""%%i""") >nul
for /f "delims=" %%i in (Remover\DDL.txt) do (GetTrustedInstaller.exe "C:\Windows\System32\cmd.exe /k rmdir /s /q ""%%i""") >nul
timeout /t 5 /nobreak
shutdown /r /f /t 0
goto :eof
Expand Down Expand Up @@ -130,4 +130,4 @@ exit
:eof
:: End of script, do nothing
exit
:--------------------------------------
:--------------------------------------

0 comments on commit f00feee

Please sign in to comment.