This script automates disk cleanup on a Windows system by running the built-in Disk Cleanup utility using the cleanmgr
command.
-
Download the Script: Download the
DiskCleanup.bat
file to your computer. -
Run the Script:
- Right-click on the
DiskCleanup.bat
file and choose "Run as administrator" to ensure the script has the necessary permissions to run Disk Cleanup. - The script will initiate Disk Cleanup for the system drive (usually C:). Disk Cleanup helps free up disk space by deleting unnecessary files.
- Right-click on the
-
Note:
- Ensure you have administrative privileges to run Disk Cleanup.
- The script will run Disk Cleanup for the system drive (C:). If you want to clean up a different drive, modify the script accordingly.
- The script uses the
cleanmgr
command to initiate Disk Cleanup for the system drive. - It's a simple way to automate the process of freeing up disk space by deleting unnecessary files.
- To run Disk Cleanup for the system drive (C:), simply double-click
DiskCleanup.bat
.
- Ahmed amin "scar7things@gmail.com"
This script is released under the MIT License.
Feel free to contribute, report issues, or suggest improvements!