I tried this code:

SHELL '%COMSPEC% /e:1024 /c DEL /S /F /Q ' + '%%USERPROFILE%%'+'\*.TMP'

and it did not work. Any ideas?