caps
This commit is contained in:
parent
4169be2cca
commit
a9e5083563
1 changed files with 9 additions and 8 deletions
|
@ -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...
|
||||
|
|
Loading…
Reference in a new issue