Howard,
You let an AND slip into the final code.

Steve,
Try not to take the critiquing too hard.

What is this?
;GOTO BATSTART
$res=WRITEVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","KixScript","$kixscript","REG_SZ")

Seems to be in amongst DOS BAT stuff.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.