Dbal has asked for the wisdom of the Perl Monks concerning the following question:

Hi

I have tried to get the hardware details (like sound card, Nic)using WIN32 module. Finally I have processor info only. Please help me , How to the hardware details.

My code is

-----------------

use Win32::Registry; my $Register = "HARDWARE\\DESCRIPTION\\System"; my $RegType, $RegValue, $RegKey, $value; my %values; $HKEY_LOCAL_MACHINE->Open($Register,$hkey)|| die $!; $hkey->GetKeys(\@key_list); $hkey->GetValues(\%values); foreach $key (@key_list) { print "\n$key\n"; } $hkey->Close();

Thanks

Dhana

Edited by planetscape - added code and <p> </p> tags; promoted to SoPW

Replies are listed 'Best First'.
Re: Help onWin32::Registry
by planetscape (Chancellor) on Dec 26, 2005 at 10:15 UTC

    You may find the scripts here to be of use.

    HTH,

    planetscape
Re: Help onWin32::Registry
by zentara (Cardinal) on Dec 26, 2005 at 11:32 UTC
Re: Help onWin32::Registry
by john_oshea (Priest) on Dec 26, 2005 at 10:45 UTC

    I'm not a Windows person by preference but this looks like it might be the sort of thing you're after.

    Oh, and you're probably not helping your chances of getting an answer by tacking this question on the end of another, unrelated one... ;-)

    Update: 2nd paragraph not applicable any more due to OP getting a thread of its own - thanks planetscape