Last active
May 16, 2022 11:28
-
-
Save erickximenes/d80c570e4cba7184fd60ee761047e581 to your computer and use it in GitHub Desktop.
Cleaning up temporary files. S.O: Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@REM autor: Erick X. Vasconcelos | |
@REM contato: [email protected] | |
del /q /f /s %TEMP%\* | |
del /q /f /s C:\Windows\Temp\* | |
del /q /f /s C:\Windows\Prefetch\* | |
exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@REM autor: Erick X. Vasconcelos | |
@REM contato: [email protected] | |
@REM verifica a integridade de todos os arquivos do sistema protegidos e substitui as versões incorretas pelas versões corretas da Microsoft. | |
sfc /scannow | |
DISM.exe /Online /Cleanup-image /Scanhealth | |
DISM.exe /Online /Cleanup-image /Restorehealth | |
@REM limpa os arquivos temporarios | |
del /q /f /s %TEMP%\* | |
del /q /f /s C:\Windows\Temp\* | |
del /q /f /s C:\Windows\Prefetch\* | |
@REM Desativa a hibernacao | |
powercfg -h off | |
@REM limpa a lixeira do windows | |
rd /s /q C:\$Recycle.bin | |
@REM aqui faz a limpeza de disco, marca todas as opcoes e o usuario nao precisa confirmar nada, so no final clicando em OK | |
cleanmgr.exe /verylowdisk /d c: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment