The second two are just one-liners ...

$= WRITEVALUE("HKCU\Software\Microsoft\Office\10.0\Common\General", "UserTemplates", "c:\mytemplates", "REG_SZ")

SHELL '%COMSPEC% /C RD /S /Q C:\MYTEMPLATES1'


But in terms of scanning the hard-drive(s) and deleting .dots .. your aware that this may add considerably to the user login experience ja ? in terms of it maybe taking more than a few seconds ?

-Shawn