A batch script for cleaning temporary files and folders in Windows to help optimize system performance and free up disk space.
This script deletes temporary files from various directories in Windows, including the system temp folder, the Windows prefetch directory, and other common temporary file locations.
- Cleans up the following directories:
C:\Windows\Temp
%temp%
C:\Windows\Prefetch
C:\Windows\History
C:\Windows\Cookies
C:\Windows\Recent
C:\Windows\Spool\Printers
- Download or clone this repository.
- Open Command Prompt as Administrator.
- Navigate to the directory where the script is located.
- Run the script by typing
clean_temp.bat
and hitting Enter.
Note: This script deletes files permanently. Ensure that you understand its function before executing.
Use this script with care. It will permanently delete files from the specified directories. Make sure to back up any important data before running the script.
This project is licensed under the MIT License - see the LICENSE file for details.