Delete Your TEMP Files On Shutdown


It is really easy to set Windows XP to delete the contents of your Temp folder (or run any other commands) on shutdown. There are numerous reasons why you might want to delete your Temporary files when you shutdown Windows XP. Your Temporary files folder can get extremely large. Take a look at what is in C:\WINDOWS\Temp.

The first step is to install Xecutor.

The second step is to create a batch file that will delete your temporary files on shutdown. To do this open up notepad and type the following line:
del /Q G:\WINDOWS\Temp save your file as tempdelete.bat. Alternatively, you can download my tempdelete.bat file if you prefer.

The third step is to configure Xecutor to run the tempdelete.bat file on shutdown. Open Xecutor, and answer no to the stream of questions
it prompts you with the first time you run it. Next choose the shutdown tab and add tempdelete.bat file. This is shown below:

After you hit OK you will now see tempdelete.bat in the shutdown tab of Xecutor.

Now just close Xecutor and it will run in your system tray. The last step is to drag the Xecutor icon from your desktop into your Startup folder located in Start >> All Programs >> Startup so that Xecutor starts when you start Windows.

You are all set, now when you shutdown Windows, your temporary files will be deleted, as well. You can add other commands the same way (i.e., delete cookies, delete My Documents, etc.).

What other commands do you think would be useful to run at Shutdown? Let us know in the comments.

Previous How To Schedule An Update Reminder in Windows Vista
Next 4 Tips on How To Handle Firefox Memory Usage

No Comment

Leave a reply

Your email address will not be published. Required fields are marked *