For my computer, and those of my family, a created a batch file I called Clean that had it's shortcut in the startup folder for all users that cleaned out those files on start-up. The only drawback was that the folders remained, but they were empty.

Here's an example, which all may use if they want...Just replace User with the account name. Create the batch file, copy/paste the details below and save. Create the shortcut and put it in C:\Documents and Settings\All Users\Start Menu\Programs\Startup.

Right-click the shortcut, select Properties. Make Run: minimized and it will stay in the System Tray, then close. The initial run will take a while if it hasn't been done, but each subsequent shouldn't take long at all.

This one is for XP:

**Copy from Here**
del /F /S /Q C:\Windows\Temp\*.*
del /F /S /Q C:\Windows\Prefetch\*.*
del /F /S /Q "C:\Documents and Settings\User\Local Settings\Temp\"*.*
del /F /S /Q "C:\Documents and Settings\User\Local Settings\Temporary Internet Files\"*.*
del /F /S /Q "C:\Documents and Settings\User\Local Settings\Temporary Internet Files\Content.IE5\"*.*
cls
**To cls**

This one is for Windows 7:


**Copy from Here**
del /F /S /Q C:\Windows\Temp\*.*
del /F /S /Q C:\Windows\Prefetch\*.*
del /F /S /Q "C:\Users\User\Local Settings\Temp\"*.*
del /F /S /Q "C:\Users\User\Local Settings\Temporary Internet Files\"*.*
del /F /S /Q "C:\Users\User\Local Settings\Temporary Internet Files\Content.IE5\"*.*
cls
**To cls**


Enjoy...

For XP:

[attachment=1:68igc2g1]clean.rar[/attachment:68igc2g1]

For Windows 7:

[attachment=1:68igc2g1]clean.rar[/attachment:68igc2g1]