- 1@echo off
- 2title Windows Startup Optimizer
- 3echo Windows Startup Optimizer by Ronny.
- 4echo.
- 5echo ########### ########### #### ### #### ### #### ####
- 6echo ############# ############# ###### ### ###### ### #### ####
- 7echo ### ### ### ####### ### ####### ### #### ###
- 8echo ############# ### ### ### #### ### ### #### ### ######
- 9echo ############ #### ### ### ####### ### ####### ####
- 10echo ### #### ############# ### ##### ### ##### ###
- 11echo ### #### ########## ### ### ### ### ###
- 12echo.
- 13echo ######################
- 14echo # @RonnyTriAsmara #
- 15echo # https://ronron.id/ #
- 16echo ######################
- 17echo Copyright (c) 2014 Ronny Tri Asmara. All rights reserved.
- 18echo.
- 19echo %date% %time%
- 20echo.
- 21echo Memulai proses optimalisasi...
- 22timeout /t 2 /nobreak >nul
- 23echo.
- 24set temp_dirs=C:\Windows\Temp
- 25set temp_dirs=%temp_dirs%;%USERPROFILE%\AppData\Local\Temp
- 26set temp_dirs=%temp_dirs%;%TEMP%
- 27set file_extensions=*.tmp *.temp *.bak
- 28for /d %%d in (%temp_dirs%) do (
- 29 cd /d %%d
- 30 for %%f in (%file_extensions%) do del /q /f %%f
- 31)
- 32del /q /s /f "%temp%\*.*"
- 33del /q /s /f "%windir%\temp\*.*"
- 34del /q /s /f "%systemdrive%\recycled\*.*"
- 35del /q /s /f "%userprofile%\recent\*.*"
- 36del /q /s /f "%userprofile%\cookies\*.*"
- 37del /q /s /f "%userprofile%\Local Settings\Temp\*.*"
- 38del /q /s /f "%userprofile%\Local Settings\Temporary Internet Files\*.*"
- 39del /q /s /f "%userprofile%\AppData\Roaming\Microsoft\Windows\Cookies\*.*"
- 40del /q /s /f "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*"
- 41ipconfig /flushdns
- 42echo.
- 43echo Proses optimalisasi selesai...
- 44echo.
- 45pause
- 46exit
Raw Paste