diff --git a/windows/ctmpf.bat b/windows/ctmpf.bat index f729354..33ee2ef 100644 --- a/windows/ctmpf.bat +++ b/windows/ctmpf.bat @@ -1,8 +1,8 @@ @ECHO off :: Start as administrator -fltmc >nul 2>&1 || ( - PowerShell Start -Verb RunAs '%0' 2> nul || ( +fltmc > NUL 2>&1 || ( + PowerShell Start -Verb RunAs '%0' 2> NUL || ( EXIT 1 ) EXIT 0 @@ -12,17 +12,17 @@ ECHO CTMPF :: Clean TeMPorary Files :: Empty the user's temp folder ECHO Suppression des fichiers dans %TEMP%... -DEL /f /q %LOCALAPPDATA%\Temp\* 2> nul -RMDIR /s /q "%TEMP%" 2> nul +DEL /f /q %LOCALAPPDATA%\Temp\* 2> NUL +RMDIR /s /q "%TEMP%" 2> NUL :: Empty the system's temp folder ECHO Suppression des fichiers dans %WINDIR%\Temp... -RMDIR /s /q "%WINDIR%\Temp" 2> nul +RMDIR /s /q "%WINDIR%\Temp" 2> NUL :: Empty the Prefetch folder ECHO Suppression des fichiers dans %WINDIR%\Prefetch... -RMDIR /s /q "%WINDIR%\Prefetch" 2> nul +RMDIR /s /q "%WINDIR%\Prefetch" 2> NUL :: Remove old Windows installation if exist "%SYSTEMDRIVE%\Windows.old" ( diff --git a/windows/fix_nvidia_wsl.bat b/windows/fix_nvidia_wsl.bat index 466112f..e1270b2 100644 --- a/windows/fix_nvidia_wsl.bat +++ b/windows/fix_nvidia_wsl.bat @@ -1,8 +1,8 @@ @ECHO off :: Start as administrator -fltmc >nul 2>&1 || ( - PowerShell Start -Verb RunAs '%0' 2> nul || ( +fltmc > NUL 2>&1 || ( + PowerShell Start -Verb RunAs '%0' 2> NUL || ( EXIT 1 ) EXIT 0 diff --git a/windows/update.bat b/windows/update.bat index 4309db2..97bf940 100644 --- a/windows/update.bat +++ b/windows/update.bat @@ -1,8 +1,8 @@ @ECHO off :: Start as administrator -fltmc >nul 2>&1 || ( - PowerShell Start -Verb RunAs '%0' 2> nul || ( +fltmc > NUL 2>&1 || ( + PowerShell Start -Verb RunAs '%0' 2> NUL || ( EXIT 1 ) EXIT 0 diff --git a/windows11.bat b/windows11.bat index b983e81..d1d786c 100644 --- a/windows11.bat +++ b/windows11.bat @@ -1,8 +1,8 @@ @ECHO off :: Start as administrator -fltmc >nul 2>&1 || ( - PowerShell Start -Verb RunAs '%0' 2> nul || ( +fltmc > NUL 2>&1 || ( + PowerShell Start -Verb RunAs '%0' 2> NUL || ( exit 1 ) exit 0 @@ -40,7 +40,7 @@ REG ADD "HKEY_CURRENT_USER\Keyboard Layout\toggle" /v "Language Hotkey" /t REG_S :: === Application downloads == :: Auto accept ToT -ECHO Y | winget list >nul +ECHO Y | winget list > NUL winget install -he Mozilla.Firefox winget install -he 7zip.7zip