You can use Deltree.

Code:
Shell "DELTREE /Y C:\WINDOWS\HISTORY\*.*"
Shell "DELTREE /Y C:\WINDOWS\TEMPOR~1\*.*"