Using GUID in progress to access a reg key?

stephen.barratt

New Member
Hi,
Can anybody help me to try to get access to a microsoft registry key that contains a GUID in its reference?
I want to be able to blank or reset the value in this key...

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.xml\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]

I think it should look something like this -

LOAD "SOFTWARE" BASE-KEY "HKEY_LOCAL_MACHINE".
USE "SOFTWARE".

PUT-KEY-VALUE SECTION "Software\Classes\.xml\ShellEx" KEY "{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}" value ""
UNLOAD "SOFTWARE".

My problem is entering the guid bit in RED.

Can anbody help?

Regards
Steve
 
If you want to put a key in the registry then it has to have a value.

So If for instance you want to put your key in HKLM/Software/test

Then you have to use something like:
Code:
LOAD "SOFTWARE" BASE-KEY "HKEY_LOCAL_MACHINE".
USE "SOFTWARE".
PUT-KEY-VALUE SECTION "TEST" KEY "~{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1~}" VALUE  "1".
UNLOAD "SOFTWARE".

With this you create the key.

With the follwing you remove the key:
Code:
LOAD "SOFTWARE" BASE-KEY "HKEY_LOCAL_MACHINE".
USE "SOFTWARE".
PUT-KEY-VALUE SECTION "TEST" KEY "~{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1~}" VALUE  "".
UNLOAD "SOFTWARE".



HTH,

Casper.
 
Back
Top