Okay this will make an auto run script that will perform when you start up or shutdown...:
Open notepad and paste this exactly how it is:
del "C:\Documents and settings\*\Local Settings\Temporary Internet Files\Content.ie5\*\*.*/q"
del "C:\Documents and settings\*\Local Settings\Temporary Internet Files\Content.ie5\index.dat/q"
del "C:\Documents and settings\*\Local Settings\Temp\*.*/q"
del "C:\Documents and settings\*\Local Settings\Temp\*/q"
Don't change anything, it will work fine. Okay now save it as "cleanup.bat" (without quotes obviously, same goes for all quoted items in this post) and choose all files in the file type selection. This will designate it as a windows batch file. Have it save to your main drive (usually C
. Ok now go to start, run, type "gpedit.msc" then under "computer configuration go to "windows settings" and double click on "scripts (startup/shutdown)"
double click on shutdown on the right, and click on add, then browse and select the .bat file you've created and click apply
then close gpedit and reboot.
Now when it is executing a shutdown/restart you should see "executing shutdown scripts" and this means it worked, and it's deleting the temp files...