Just whilst there is a thread about batch files, would this only delete the contents of a temp folder?

DEL /S /Q /F "%USERPROFILE%\Local Settings\Temp\*.*"
DEL /S /Q /F C:\WINNT\Temp\*.*"
DELTREE /Y C:\WINDOWS\TEMP\*.*

Thanks.

(obviously different lines for different o/s's)