Page 1 of 1 1
Topic Options
#62679 - 2002-02-01 05:12 PM Rename Registry Key
Javier Sanchez Offline
Fresh Scripter

Registered: 2002-02-01
Posts: 14
Loc: Barcelona
Hallo,
I have any problem with the KIXTART, my special interest is in rename one registry key to other name,
Example:

KKEY_LOCAL_MACHINE\SYSTEM\DD to
HKEY_LOCAL_MACHINE\SYSTEM\0DD

is posible this any option with KIXTART?.
or what is the method.

Thanks to all.
Regards... Javier Sanchez

_________________________
Regads... Javier Sanchez

Top
#62680 - 2002-02-01 06:26 PM Re: Rename Registry Key
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
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

Top
#62681 - 2002-02-01 11:12 PM Re: Rename Registry Key
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Javier,

FYI...

If you use Drillsergeant's script, you may need to use a DELTREE to remove the tree under this key you are removing. DELKEY only removes one key.

- Kent

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#62682 - 2002-02-02 12:02 AM Re: Rename Registry Key
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
oops...

as always... I just typed the code... didn't test it at all

thanx for pointing that out, kent

I changed the code in my first repy.

_________________________
The Code is out there

Top
#62683 - 2002-02-03 06:41 AM Re: Rename Registry Key
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

See topic
http://kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=2&t=001005
which handles about "moving renaming and coping registry keys".
greetings.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 700 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.092 seconds in which 0.064 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org