Here's our Windows XP Tip for.. January 29, 2007
Click Here to see a complete list of all of our previously released Tips!
Eighty-Six Your Temp Files
It seems that every day more and more empty folders with the extension .tmp appear in my temp file directory. Is there a batch file or registry setting I can use to delete these at start-up?

Here's a batch file that should handle the job. To create the file, run Notepad and enter the following as shown here.

@echo off del C:\Documents and Settings\\Local Settings\Temp\*.tmp

Choose File, Save As and locate a folder for the new file. Name the file deltmp.bat and save it. Next, run Windows Explorer and locate your start-up folder (under C:\Documents and Settings\\Start Menu\Programs\Startup). Grab the deltmp.bat icon with the right mouse button and drag it to your start-up folder. Release the mouse button and choose Create Shortcut(s) Here.

Note that it's possible to lose some data when you use this batch file. For example, if a program hangs and you shut it down using End Task, you may have lost some data you needed in those temp files.