Plus, since redirection is a feature of the command shell, one has to use %comspec%, like this:

SHELL "%comspec% /c deltree -y C:\windows\desktop\*.* >NUL 2>NUL"

-Shawn