* use delayed expansion

* format
This commit is contained in:
Mylloon 2023-04-05 12:36:58 +02:00
parent ce4a293330
commit 358d146565
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
5 changed files with 14 additions and 13 deletions

View file

@ -1,4 +1,4 @@
@ECHO off
@ECHO OFF
:: Patch spotify
PowerShell -Command "[Net.ServicePointManager]::SecurityProtocol =" ^

View file

@ -1,7 +1,7 @@
@ECHO off
@ECHO OFF
:: Start as administrator
fltmc > NUL 2>&1 || (
fltmc > NUL 2> &1 || (
PowerShell Start -Verb RunAs '%0' 2> NUL || (
EXIT 1
)

View file

@ -1,7 +1,7 @@
@ECHO off
@ECHO OFF
:: Start as administrator
fltmc > NUL 2>&1 || (
fltmc > NUL 2> &1 || (
PowerShell Start -Verb RunAs '%0' 2> NUL || (
EXIT 1
)

View file

@ -1,7 +1,7 @@
@ECHO off
@ECHO OFF
:: Start as administrator
fltmc > NUL 2>&1 || (
fltmc > NUL 2> &1 || (
PowerShell Start -Verb RunAs '%0' 2> NUL || (
EXIT 1
)

View file

@ -1,11 +1,12 @@
@ECHO off
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
:: Start as administrator
fltmc > NUL 2>&1 || (
fltmc > NUL 2> &1 || (
PowerShell Start -Verb RunAs '%0' 2> NUL || (
exit 1
EXIT 1
)
exit 0
EXIT 0
)
:: === Right click of Windows 10 ==
@ -92,8 +93,8 @@ wsl --install
"%ProgramFiles%\Mozilla Firefox\firefox.exe"
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.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/user.js -OutFile '%vbc%/user.js'"
FOR /F %%i IN ('dir /B /S ^"%APPDATA%\Mozilla\Firefox\Profiles\*.default-release^"') DO SET "vbc=%%i"
PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/user.js -OutFile '!vbc!/user.js'"
PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/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.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/extensions/SponsorBlockConfig.json -OutFile '%HOMEPATH%\Downloads\SponsorBlockConfig.json'"