Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
Script:
@echo off
title Limpeza de Memória RAM
echo Limpando a memória RAM...
:: Força a limpeza da memória cache
echo. | echo %temp% > "%temp%\clear_ram.vbs"
echo Set objShell = CreateObject("Shell.Application") >> "%temp%\clear_ram.vbs"
echo objShell.MinimizeAll >> "%temp%\clear_ram.vbs"
echo Set objShell = Nothing >> "%temp%\clear_ram.vbs"
cscript //B "%temp%\clear_ram.vbs"
del "%temp%\clear_ram.vbs"
:: Finaliza processos desnecessários
tasklist /FI "STATUS eq RUNNING" | findstr /V /I "explorer.exe cmd.exe taskmgr.exe" > temp.txt
for /f "tokens=1" %%i in (temp.txt) do taskkill /PID %%i /F
del temp.txt
echo Memória RAM limpa com sucesso!
pause
exit
Como Executar o Script:
.bat
, por exemplo, limpar_ram.bat
.