The Windows Disk Cleanup Wizard will delete your temporary files, but only if they are over a week old. In this guide you will learn how to create a simple batch script that will clean up your temporary directory.
Create the Batch File
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.
If this doesn’t work and gives an access error, try replacing %username% with you windows login username.
Automate the Process
You can automate this process by right clicking on the file and selecting create shortcut.
Now place the shortcut in your startup folder in the start menu. Now when you log in to Windows Vista, your temporary files will be deleted.
Last 5 posts by Rich
- Do You Use Windows 7's XP Mode? [Poll] - July 23rd, 2010
- Customize Your Windows 7 Start Button with Token Start Orbs - July 22nd, 2010
- 10 Top Tips to Save Space on Your Hard Drive (HDD) - July 22nd, 2010
- Set Parental Controls and Protect Your Children with Windows 7 [How To] - July 21st, 2010
- Reminder: Windows Guides Paid Writer Application - July 20th, 2010
Looking for something else?![]() |
Comments