Tuesday, June 16, 2009


Automatically Delete Temporary Files In Windows Vista

The Windows Disk Cleanup Wizard will delete your temporary files, but only if they are over a week old. Also Know How To Use Disk CleanUp And How To Disable Disk CleanUp In Windows.

Windows Vista Disk Cleanup wizard is really not all that bad, Bur, it doesn’t fully empty your temp folder. It deletes temporary files that haven’t been modified in a week.

If you’ve recently done a lot of editing or something that generates large temporary files, you may want to manually clean up. Just type in %TEMP% into the start menu search box, and hit enter. You’ll immediate be taken to the temporary files folder, where you can delete whatever you feel like.
And if we want to make this process automatically done, we need to to create a simple batch script that will clean up our temporary  directories.

To create a simple batch script that will clean up our temporary  directories, do the following:

Creating the Batch File
1. Open Notepad and type the following:
             cd C:\Users\%username%\AppData\Local
             rmdir /S /Q Temp
2. Save the file as cleantemp.bat
3. 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.

Automating the Process
To automate this process, so you do not need to remember to run it, do the following:
1. Right click on the batch file and select create shortcut
2. 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.
Note: This may some time slow your start up speed when you have done some installation before the previous shutdown operation. It is understood that the batch file is cleaning the temp files related to the previous installation. If you want to Start Windows In Less Time or to Load Windows Faster you need to refer to this link.

Also Know:


About bench3 -

Haja Peer Mohamed H, Software Engineer by profession, Author, Founder and CEO of "bench3" you can connect with me on Twitter , Facebook and also onGoogle+

Subscribe to this Blog via Email :