Hello All, I have a question about reading keys from the registry. The following code will read all subkeys below a defined key.
use Win32::Registry;
my $Register = "Software\\Microsoft";
my ($hkey, @key_list, $key);
$HKEY_LOCAL_MACHINE->Open($Register,$hkey)|| die $!;
$hkey->GetKeys(\@key_list);
print "$Register keys\n";
foreach $key (@key_list)
{
print "$key\n";
}
$hkey->Close();
$next = <STDIN>;
I would like to read a single specific key value and was wondering the best way to go about it. In kixtart I could use a 1 line statement to do this. If somebody wouldn't mind posting an example on the best way to read a single registry key value I would appreciate it.
Thanks in advance. =)
use Win32::Registry;
my $Register = "Software\\Microsoft";
my ($hkey, @key_list, $key);
$HKEY_LOCAL_MACHINE->Open($Register,$hkey)|| die $!;
$hkey->GetKeys(\@key_list);
print "$Register keys\n";
foreach $key (@key_list)
{
print "$key\n";
}
$hkey->Close();
$next = <STDIN>;
I would like to read a single specific key value and was wondering the best way to go about it. In kixtart I could use a 1 line statement to do this. If somebody wouldn't mind posting an example on the best way to read a single registry key value I would appreciate it.
Thanks in advance. =)