Page 1 of 1 1
Topic Options
#121979 - 2004-06-30 09:15 AM Rename a Registry Key with Kixtart
Raikkonen_WC Offline
Lurker

Registered: 2004-06-30
Posts: 2
I have a question.

To remove the Administration Tool in Windows XP's Control Panel I need to rename a registry key. Is their a way that you can rename a key with Kixtart?

Greetings
Raymond

Top
#121980 - 2004-06-30 09:59 AM Re: Rename a Registry Key with Kixtart
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
There is no "rename" built-in, however you may read the existing key/values, write the new key/values and then delete the original key.

Look in the KiXtart manual for:
  • EnumKey(), EnumValue to enumerate the keys and values,
  • ReadtType() to get the value type.
  • ReadValue() to get the value value.
  • WriteValue() to write the value / create the key.
  • DelKey(), DelValue() to delete the old value(s) and key


Note, this may lose any associated permissions.

You might also like to look at SaveKey() and LoadKey() to shortcut some of the work.

Top
#121981 - 2004-06-30 02:46 PM Re: Rename a Registry Key with Kixtart
Kdyer Offline
KiX Supporter
*****

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

moving renaming and coping registry keys

Rename Registry Key

HOW TO: Add, Modify, or Delete Registry Subkeys and Values by Using a Registration Entries (.reg) File - Microsoft Tech Article

HTH,

Kent


Edited by kdyer (2004-07-01 02:12 PM)
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#121982 - 2004-06-30 03:18 PM Re: Rename a Registry Key with Kixtart
Raikkonen_WC Offline
Lurker

Registered: 2004-06-30
Posts: 2
These links doesn't work

I have another question. How can I write this line into the register?:

@%SystemRoot%\system32\SHELL32.dll,-22921

There is a REG_EXPAND_SZ that need this info. But when I insert it, he give this:

<unknown:C:\WINDOWS\system32\SHELL32.dll,-22921

When I extract the file into a reg file, he gives me this line instead of the "@%SystemRoot%\system32\SHELL32.dll,-22921"

"InfoTip"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
00,53,00,48,00,45,00,4c,00,4c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,\
2d,00,32,00,32,00,39,00,32,00,31,00,00,00

Who can help?


Top
#121983 - 2004-06-30 03:30 PM Re: Rename a Registry Key with Kixtart
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Most of your questions are answered in the manual, please try and read it from start to finish at least once.

Your problem is that the characters "%", "@" and "$" have special meaning to KiXtart. To enter them in strings you need to double them up, so you need to write the following string:
Code:
"@@%%SystemRoot%%\system32\SHELL32.dll,-22921"



This is explained towards the start of the manual.

Also look at using the option SetOption("NoVarsInStrings","ON") as this may help you.

Top
#121984 - 2004-06-30 03:30 PM Re: Rename a Registry Key with Kixtart
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Try:

"@@%%SystemRoot%%\system32\SHELL32.dll,-22921"

-Shawn

Top
#121985 - 2004-07-01 04:08 AM Re: Rename a Registry Key with Kixtart
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Also, you've been provided with the titles of the linked threads, thus it should be easy to use the BBS Search to retrieve the threads yourself.
_________________________
There are two types of vessels, submarines and targets.

Top
#121986 - 2004-07-01 06:17 AM Re: Rename a Registry Key with Kixtart
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Links are fixed.. You should also be able to search this site (just like I did).

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

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1114 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

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

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