This commit is contained in:
Mylloon 2024-07-02 11:19:21 +02:00
parent 511d3b5804
commit 122cec4ea7
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 18 additions and 18 deletions

View file

@ -11,51 +11,51 @@ fltmc >NUL 2>&1 || (
ECHO CTMPF :: Clean TeMPorary Files
:: Empty the user's temp folder
ECHO Suppression des fichiers dans %TEMP%...
ECHO Delete files in %TEMP%...
DEL /S /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...
ECHO Delete files in %WINDIR%\Temp...
RMDIR /S /Q "%WINDIR%\Temp" 2>NUL
:: Empty the Prefetch folder
ECHO Suppression des fichiers dans %WINDIR%\Prefetch...
ECHO Delete files in %WINDIR%\Prefetch...
RMDIR /S /Q "%WINDIR%\Prefetch" 2>NUL
:: Remove old Windows installation
if exist "%SYSTEMDRIVE%\Windows.old" (
ECHO Supprime l'ancienne installation de Windows dans %SYSTEMDRIVE%\Windows.old...
ECHO Delete old Windows installation in %SYSTEMDRIVE%\Windows.old...
TAKEOWN /f "%SYSTEMDRIVE%\Windows.old" /a /r /d y
ICACLS "%SYSTEMDRIVE%\Windows.old" /grant administrators:F /t
RMDIR /S /Q "%SYSTEMDRIVE%\Windows.old"
)
:: Empty useless files of Windows
ECHO Suppression des fichiers dans C:\$WinREAgent...
ECHO Delete files in C:\$WinREAgent...
RMDIR /S /Q "C:\$WinREAgent" 2>NUL
ECHO Suppression des fichiers dans C:\Recovery...
ECHO Delete files in C:\Recovery...
RMDIR /S /Q "C:\Recovery" 2>NUL
:: Empty AMD installer files
ECHO Suppression des fichiers dans C:\AMD...
ECHO Delete files in C:\AMD...
RMDIR /S /Q "C:\AMD" 2>NUL
:: Empty Windows generated logs
ECHO Suppression des fichiers dans C:\PerfLogs...
ECHO Delete files in C:\PerfLogs...
RMDIR /S /Q "C:\PerfLogs" 2>NUL
:: Delete Dump
ECHO Suppression des logs de la pile C:\DumpStack.log...
ECHO Delete stack files in C:\DumpStack.log...
DEL /Q "C:\DumpStack.log" 2>NUL
:: Empty NVidia shader caches
ECHO Supprime les caches NVidia
ECHO Delete NVidia cache...
DEL /S /F /Q %LOCALAPPDATA%Low\NVIDIA\PerDriverVersion\DXCache\* 2>NUL
DEL /S /F /Q %LOCALAPPDATA%\NVIDIA\GLCache\* 2>NUL
:: Clean disks
ECHO Nettoyage de l'ordinateur avec cleanmgr...
ECHO Clean computer with the cleanmgr tool...
CD %WINDIR%\system32
cleanmgr /AUTOCLEAN
cleanmgr /VERYLOWDISK

View file

@ -1,14 +1,14 @@
@ECHO OFF
:: Install latest version of spotify
ECHO Installe la derniere version de spotify
ECHO Install latest Spotify version
ECHO Y | winget install -he Spotify.Spotify
:: Close spotify
PowerShell -Command "Stop-Process -Name Spotify -ErrorAction SilentlyContinue"
:: Patch spotify
ECHO Patch spotify avec BlockTheSpot
ECHO Patch spotify with BlockTheSpot
PowerShell -Command "" ^
"cd $env:TEMP;" ^
"$urlElf = 'https://github.com/mrpond/BlockTheSpot/releases/latest/download/chrome_elf.zip';" ^
@ -27,7 +27,7 @@ PowerShell -Command "" ^
:: Delete newly created Spotify shortcut
DEL %HOMEPATH%\Desktop\Spotify.lnk 2>NUL
ie4uinit -show
ECHO Suppression du raccourci du bureau
ECHO Remove the desktop shortcut
IF NOT "%1"=="yes" (
:: Restart Spotify

View file

@ -1,18 +1,18 @@
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
ECHO Ferme Discord
ECHO Close Discord
TASKKILL /im Discord.exe /F
ECHO MaJ Discord
ECHO Update Discord
ECHO Y | winget install -he Discord.Discord
SET "discord_dir=%LOCALAPPDATA%\Discord"
ECHO Ferme Discord
ECHO Reclose Discord
TASKKILL /im Discord.exe /F
ECHO Installe Vencord
ECHO Install Vencord
PowerShell -Command "" ^
"$link = 'https://github.com/Vencord/Installer/releases/latest/download/VencordInstallerCli.exe';" ^
"$file = 'vencord.exe';" ^