From 2aa8204406e412cafc56740a5436056e95d259c1 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 4 Jan 2023 12:36:17 +0100 Subject: [PATCH] add quotes --- windows11.bat | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/windows11.bat b/windows11.bat index 18ccd59..9001aa3 100644 --- a/windows11.bat +++ b/windows11.bat @@ -94,17 +94,17 @@ powershell -Command "&{[Net.ServicePointManager]::SecurityProtocol = [Net.Securi taskkill /im firefox.exe /F for /F %%i in ('dir /B /S ^"%APPDATA%\Mozilla\Firefox\Profiles\*.default-release^"') do set vbc=%%i -powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/.mozilla/firefox/user.js -OutFile %vbc%/user.js" +powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/.mozilla/firefox/user.js -OutFile '%vbc%/user.js'" -powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/.mozilla/firefox/extensions/Dark-Reader-Settings.json -OutFile %HOMEPATH%\Downloads\Dark-Reader-Settings.json" -powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/.mozilla/firefox/extensions/SponsorBlockConfig.json -OutFile %HOMEPATH%\Downloads\SponsorBlockConfig.json" +powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/.mozilla/firefox/extensions/Dark-Reader-Settings.json -OutFile '%HOMEPATH%\Downloads\Dark-Reader-Settings.json'" +powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/.mozilla/firefox/extensions/SponsorBlockConfig.json -OutFile '%HOMEPATH%\Downloads\SponsorBlockConfig.json'" echo La configuration des differents Addons de Firefox est presente dans le dossier %HOMEPATH%\Downloads. :: === User Diag for drivers == echo Installe les pilotes, pour connaitre la liste des pilotes, utilise UserDiag https://userdiag.com/download :: === W10Privacy == -powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/W10Privacy.ini -OutFile %HOMEPATH%\Downloads\W10Privacy.ini" +powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/W10Privacy.ini -OutFile '%HOMEPATH%\Downloads\W10Privacy.ini'" echo Ensuite, utilise W10Privacy (https://www.w10privacy.de/deutsch-start/download/) avec le fichier present dans %HOMEPATH%\Downloads (version 4.0.0.1). :: === Modules == @@ -113,28 +113,28 @@ powershell -Command "Install-Module -Name PSWindowsUpdate -Force" :: === Scripts == mkdir %HOMEPATH%\Documents\Local -powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/windows/ctmpf.bat -OutFile %HOMEPATH%\Documents\Local\ctmpf.bat" -powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/windows/spotx.bat -OutFile %HOMEPATH%\Documents\Local\spotx.bat" -powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/windows/update.bat -OutFile %HOMEPATH%\Documents\Local\update.bat" +powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/windows/ctmpf.bat -OutFile '%HOMEPATH%\Documents\Local\ctmpf.bat'" +powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/windows/spotx.bat -OutFile '%HOMEPATH%\Documents\Local\spotx.bat'" +powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/windows/update.bat -OutFile '%HOMEPATH%\Documents\Local\update.bat'" :: === OpenTabletDriver == :: Download -powershell -Command "Invoke-WebRequest -Uri https://opentabletdriver.net/Release/Download/OpenTabletDriver.win-x64.zip -OutFile %HOMEPATH%\Downloads\OpenTabletDriver.win-x64.zip" +powershell -Command "Invoke-WebRequest -Uri https://opentabletdriver.net/Release/Download/OpenTabletDriver.win-x64.zip -OutFile '%HOMEPATH%\Downloads\OpenTabletDriver.win-x64.zip'" :: Extract -powershell -Command "Expand-Archive -Path %HOMEPATH%\Downloads\OpenTabletDriver.win-x64.zip -DestinationPath '%ProgramFiles%\OpenTabletDriver'" +powershell -Command "Expand-Archive -Path '%HOMEPATH%\Downloads\OpenTabletDriver.win-x64.zip' -DestinationPath '%ProgramFiles%\OpenTabletDriver'" :: Create shortcut powershell -Command "& { $WshShell = New-Object -comObject WScript.Shell; $Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\OpenTabletDriver.lnk'); $Shortcut.TargetPath = '%ProgramFiles%\OpenTabletDriver\OpenTabletDriver.UX.Wpf.exe'; $Shortcut.Save() }" :: WindowsInk -powershell -Command "Invoke-WebRequest -Uri https://github.com/X9VoiD/vmulti-bin/releases/download/v1.0/Driver.zip -OutFile %HOMEPATH%\Downloads\Driver-VMulti.zip" +powershell -Command "Invoke-WebRequest -Uri https://github.com/X9VoiD/vmulti-bin/releases/download/v1.0/Driver.zip -OutFile '%HOMEPATH%\Downloads\Driver-VMulti.zip'" :: Extract -powershell -Command "Expand-Archive -Path %HOMEPATH%\Downloads\Driver-VMulti.zip -DestinationPath %HOMEPATH%\Downloads\Driver-VMulti" +powershell -Command "Expand-Archive -Path '%HOMEPATH%\Downloads\Driver-VMulti.zip' -DestinationPath '%HOMEPATH%\Downloads\Driver-VMulti'" :: Install driver call %HOMEPATH%\Downloads\Driver-VMulti\64\install_hiddriver.bat :: Download plugin -powershell -Command "Invoke-WebRequest -Uri https://github.com/X9VoiD/VoiDPlugins/releases/latest/download/WindowsInk.zip -OutFile %HOMEPATH%\Downloads\WindowsInk.zip" +powershell -Command "Invoke-WebRequest -Uri https://github.com/X9VoiD/VoiDPlugins/releases/latest/download/WindowsInk.zip -OutFile '%HOMEPATH%\Downloads\WindowsInk.zip'" :: Extract plugin -powershell -Command "Expand-Archive -Path %HOMEPATH%\Downloads\WindowsInk.zip -DestinationPath '%LOCALAPPDATA%\OpenTabletDriver\Plugins\Windows Ink'" +powershell -Command "Expand-Archive -Path '%HOMEPATH%\Downloads\WindowsInk.zip' -DestinationPath '%LOCALAPPDATA%\OpenTabletDriver\Plugins\Windows Ink'" :: === Miscellaneous == :: Rename shortcut for Minecraft