Hi,

I'm trying write to a file and write a key to the registry, checking for the key at subsequent logons to ensure that the write is only performed once.
My code looks like this (alright I stole it)
---------------------------------------------
$key = "HKEY_LOCAL_MACHINE\Software\Fowles\customdic"
$ReturnCode = ExistKey ("$key")
If $ReturnCode=0
goto EndCommon
else
call "wordic.kix"
$ReturnCode = AddKey( "$key" )
Endif
---------------------------------------------

Anyone able to see where I am going wrong?

Thanks