Tuesday, October 26, 2010

How to Automatically Clear Temp Files At StartUp

                                      Everybody don’t like junk. There are a lot of junk files created in Windows by default. The Disk Clean up Utility in Windows help us to remove the system Clutter upto certain extend. Disk Cleanup can also remove the outdated or older restore points being created by System Restore which we do not need any more. But there are many temporary files the Disk Clean up utility of Windows wont clean by default. We can configure it to clean up those unnecessary junk there by making more space available.

Here we are not going to do any thing with the Disk Clean up utility but we create a small batch file that does the clean up job as the Disk Clean up utility does.

1.Open the Notepad and type the following in it.

2.del /s /q “C:\Documents and Settings\placeyourusernamehere\Local Settings\Temp\*.*”

3.You need to replace placeyourusernamehere with the User name you have logged into Windows.

4.Now save the files as a bat file. To do this select “Save As” option from notepad and select “All Files” from “Save as type” tab. and give the file name as TempKill.bat.

5.When you want to clean the temporary files you can run this file. If you want this to run this automatically with the Windows just place the file in the start up folder of windows for that go to this location.

6.C:\Documents and Settings\placeyourusernamehere\Start Menu\Programs\Startup

That’s it! From now on the files in the temp folder will be cleaned automatically on Windows Start Up.


There is a great tool Digeus Registry Cleaner I recommend to use it when there are problems with windows. I also use Windsty Tune Up Suite. It protects your computer from system crashes.

Post a Comment

Search This Blog



Twitter Delicious Facebook Digg Stumbleupon Favorites More