LOADKEY() is the complement of SAVEKEY(), meaning LOADKEY() loads what SAVEKEY() saves.

It does not work with exported .reg files from REGEDIT.

So, how do we work with these exported .REG files?

In kix, you will want to do the following:

code:
SHELL "regedit.exe /s regkey.reg"

Caveat - Merging .REG file is not necessary for one or even five values.

Consider the following example:

code:
IF READVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail","")<>""
$RC=WRITEVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail","","Lotus Notes","REG_SZ")
ENDIF

However, if you had to merge a significant number of entries then you could merge these values using the SHELL command above.

[ 07. May 2003, 20:02: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's