Question registry reading (Standard Key)

Raddict

Active member
Joined
May 19, 2005
Messages
28
Location
Rotterdam (Holland)
Programming Experience
3-5
Hi,

I try to read the value ""C:\\Program Files\\Edgecam\\2011.10"" from the following registry entry:

VB.NET:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Planit\Edgecam\2011.10\Installation]
@="C:\\Program Files\\Edgecam\\2011.10"
"Folder"="Edgecam\\2011.10"
"GUID"="{EB1B1A77-64A8-4DAD-8BBD-FE438EF5B742}"

The value for Folder and GUID is simple:
VB.NET:
My.Computer.Registry.GetValue(Key, "Folder", AlternativeValue)

but what is the "Name" for the first one??

Edit: title should be "registry reading (default key) :)
 
As is ALWAYS the case, the first place you should look when you have a question about a specific type or member is the documentation for that type or member.

my.computer.registry.getvalue - MSDN Search

The first match is the topic you want and I quote from that topic:
A registry key can contain one value that is not associated with any name. When this unnamed value is displayed in the registry editor, the string "(Default)" appears instead of a name. To retrieve this unnamed value, specify either null or the empty string ("") for valueName.
It took me less than 30 seconds to find that. This is how easy it can be to answer your own questions using the documentation.
 
Back
Top