This commit is contained in:
Mylloon 2024-02-22 00:26:55 +01:00
parent 4169be2cca
commit a9e5083563
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -12,37 +12,38 @@ 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" (
ECHO Supprime l'ancienne installation de Windows dans %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"
RMDIR /S /Q "%SYSTEMDRIVE%\Windows.old"
)
:: Empty useless files of Windows
ECHO Suppression des fichiers dans C:\$WinREAgent...
RMDIR /s /q "C:\$WinREAgent" 2>NUL
RMDIR /S /Q "C:\$WinREAgent" 2>NUL
ECHO Suppression des fichiers dans C:\Recovery...
RMDIR /s /q "C:\Recovery" 2>NUL
RMDIR /S /Q "C:\Recovery" 2>NUL
:: Empty AMD installer files
ECHO Suppression des fichiers dans C:\AMD...
RMDIR /s /q "C:\AMD" 2>NUL
RMDIR /S /Q "C:\AMD" 2>NUL
:: Empty Windows generated logs
ECHO Suppression des fichiers dans C:\PerfLogs...
RMDIR /S /Q "C:\PerfLogs" 2>NUL
:: Delete Dump
ECHO Suppression des logs de la pile C:\DumpStack.log...