Temp-Cleaner is a lightweight, safe Windows batch script that frees up disk space and improves performance by removing temporary files, caches, logs, and other unnecessary data.
-
Quick Cleanup (fast daily cleanup)
- User TEMP folders (
%TEMP%,%LocalAppData%\Temp,LocalLow\Temp) - Windows TEMP (
C:\Windows\Temp) - Crash/memory dumps
- PowerShell history and Windows caches
- Windows Update download cache
- Prefetch files
- Thumbnail cache
- Browser caches (Edge and Chrome)
- Recycle Bin
- Windows logs and Defender logs
- DNS cache flush and IP renewal
- Explorer restart for thumbnail changes
- User TEMP folders (
-
Auto Disk Cleanup runs pre-configured
cleanmgr /sagerun:50silently -
Automatic admin elevation
-
Colorful interactive menu with progress indicators
-
One-time setup instructions for silent Disk Cleanup
-
Safe, only targets known temporary and cache locations
-
Double-click
TempCleaner.bat -
Allow Administrator rights
-
Choose an option from the menu:
Option Action 1 Quick Cleanup 2 Auto Disk Cleanup 3 Setup Instructions for option 2 4 About Developer 99 Exit
Note: First-time users should run option 3 once to configure the Disk Cleanup preset. Afterwards, option 2 will run silently and clean more thoroughly.
- Monthly maintenance
- After Windows updates
- Low disk space on C
- Sluggish system performance
This project is licensed under the MIT License.
Made by Prashant Thakur
GitHub: https://github.com/prashant64bit
Portfolio: https://PrashantThakur.is-a.dev
LinkedIn: https://linkedin.com/in/prashant64bit