Well, here's a complete script:

Code:

BREAK ON

SHELL '%COMSPEC% /C DEL C:\NORMAL.DOT /S >NUL 2>NUL'

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

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

EXIT 0



Just copy/paste these lines into a file called LOGIN.KIX and run it with KIX32.EXE like this:

C:\> KIX32 LOGIN.KIX

But before you do that ... I get the impression that there is much more to the story here so hang-on before you run it ;0)

Will this be a login script by itself or part of a bigger login script ? You said you want to run this only once for a user ? What OS's are you running this on ? You need help in terms of setting-up this login script in the domain ? Will there be any group checking needed to be done ? Many questions.

If there is someone in your organization that knows Kixtart (get the impression that there is), then I would get on the blower and have them give you the skinny on how things are setup in your org. Maybe even get them to give you the low-down on what more needs to be done.