HapusSampah.bat

DOS/Batch Detected Guest 3 Views Size: 1.55 KB Posted on: Sep 11, 26 @ 1:38 PM
  1. 1@echo off
  2. 2title Pembersih Sampah Windows
  3. 3color 0A
  4. 4echo ========================================
  5. 5echo PEMBERSIH SAMPAH WINDOWS
  6. 6echo ========================================
  7. 7echo.
  8. 8echo Script ini akan membersihkan:
  9. 9echo - Recycle Bin
  10. 10echo - Folder Temp
  11. 11echo - Windows Temp
  12. 12echo - Prefetch
  13. 13echo - Browser Cache
  14. 14echo.
  15. 15echo ========================================
  16. 16pause
  17. 17
  18. 18echo.
  19. 19echo Membersihkan Recycle Bin...
  20. 20rd /s /q %systemdrive%\$Recycle.Bin 2>nul
  21. 21echo [OK] Recycle Bin dibersihkan!
  22. 22
  23. 23echo.
  24. 24echo Membersihkan Folder Temp pengguna...
  25. 25del /q /f /s %TEMP%\*.* 2>nul
  26. 26rd /s /q %TEMP% 2>nul
  27. 27mkdir %TEMP%
  28. 28echo [OK] Folder Temp pengguna dibersihkan!
  29. 29
  30. 30echo.
  31. 31echo Membersihkan Windows Temp...
  32. 32del /q /f /s %SystemRoot%\Temp\*.* 2>nul
  33. 33rd /s /q %SystemRoot%\Temp 2>nul
  34. 34mkdir %SystemRoot%\Temp
  35. 35echo [OK] Windows Temp dibersihkan!
  36. 36
  37. 37echo.
  38. 38echo Membersihkan Prefetch...
  39. 39del /q /f /s %SystemRoot%\Prefetch\*.* 2>nul
  40. 40echo [OK] Prefetch dibersihkan!
  41. 41
  42. 42echo.
  43. 43echo Membersihkan Cache Browser...
  44. 44del /q /f /s "%LOCALAPPDATA%\Google\Chrome\User Data\Default\Cache\*.*" 2>nul
  45. 45del /q /f /s "%LOCALAPPDATA%\Microsoft\Edge\User Data\Default\Cache\*.*" 2>nul
  46. 46del /q /f /s "%APPDATA%\Mozilla\Firefox\Profiles\*.default*\cache2\*.*" 2>nul
  47. 47echo [OK] Cache browser dibersihkan!
  48. 48
  49. 49echo.
  50. 50echo Menjalankan Disk Cleanup...
  51. 51cleanmgr /sagerun:1
  52. 52
  53. 53echo.
  54. 54echo ========================================
  55. 55echo PEMBERSIHAN SELESAI!
  56. 56echo ========================================
  57. 57echo.
  58. 58echo Ruang disk berhasil dibersihkan.
  59. 59echo Tekan tombol apapun untuk keluar...
  60. 60pause >nul

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.