Skip to content

Latest commit

 

History

History

diskcleanup

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

DiskCleanup.bat Script

This script automates disk cleanup on a Windows system by running the built-in Disk Cleanup utility using the cleanmgr command.

How to Use

  1. Download the Script: Download the DiskCleanup.bat file to your computer.

  2. 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.
  3. 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.

Script Details

  • 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.

Example Usage

  • To run Disk Cleanup for the system drive (C:), simply double-click DiskCleanup.bat.

Contributors

License

This script is released under the MIT License.

Feel free to contribute, report issues, or suggest improvements!