The Windows Disk Cleanup Wizard will delete your temporary files, but
only if they are over a week old. To create a simple batch script that
will clean up your temporary directories, do the following (Vista instructions):
ref:
http://mintywhite.com/windows-7/7maintenance/automatically-delete-temporary-files-windows-7/
Creating the Batch File to Clean Temporary Files
- Open Notepad and type the following:
cd C:\Users\%username%\AppData\Local
rmdir /S /Q Temp - Save the file as cleantemp.bat
- Now double click on the file to remove your temporary files and free up space on your computer
Automating the Process of Deleting Temporary Files
To automate this process, so you do not need to remember to run it, do the following:- Right click on the batch file and select create shortcut
- Place the shortcut in your startup folder in the start menu
ref:
http://mintywhite.com/windows-7/7maintenance/automatically-delete-temporary-files-windows-7/
No comments:
Post a Comment