PDA

View Full Version : Trying to Delete Sub-Key


Mythwyn
12-28-2003, 01:08 AM
Attempting to delete this sub key with DeleteKey Action

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Explorer\RemoteComputer\NameSpace\{2227 A280-3AEA-1069-A2DE-08002B30309D}]
@="Printers"

NameSpace has two numaric sub-keys, the one shown is what I'm practicing on, it's value is Printers.

I've tried several variations including this,

Registry.DeleteKey(HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer \RemoteComputer\NameSpace", "{2227A280-3AEA-1069-A2DE-08002B30309D}");

After rebooting or re-logging the key is still there no matter what I try. Any thoughts?

Mythwyn
12-28-2003, 01:39 AM
Opps... Was'nt formating my path correctly, used to the v4 single slash not the \\ throughout the path. Sorry