Hi Javier,

Welcome to the board!

I think the easiest way to do this in kix is to use the functions SAVEKEY () and LOADKEY ().

like this:



$tmpfile = '%temp%\setkey.tmp'

$nul=SaveKey('HKEY_LOCAL_MACHINE\SYSTEM\DD',$tmpfile)

$nul=AddKey('HKEY_LOCAL_MACHINE\SYSTEM\0DD')

$nul=LoadKey('HKEY_LOCAL_MACHINE\SYSTEM\0DD',$tmpfile)

$nul=DelTree('HKEY_LOCAL_MACHINE\SYSTEM\DD')

DEL $tmpfile


HTH

[ 02 February 2002: Message edited by: DrillSergeant ]

_________________________
The Code is out there