Windows Startup Optimizer.bat

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

Raw Paste

Comments 0
Login to post a comment.
  • No comments yet. Be the first.
Login to post a comment. Login or Register
We use cookies. To comply with GDPR in the EU and the UK we have to show you these.

We use cookies and similar technologies to keep this website functional (including spam protection via Google reCAPTCHA or Cloudflare Turnstile), and — with your consent — to measure usage and show ads. See Privacy.