Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use Getopt::Long; use Win32::TieRegistry; use Win32API::Registry qw( regLastError ); my ($machine, $help, $remote_key, $entry); my $root_key = "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/a +llisbus/Parameters/Session"; GetOptions( "h" => \$help, "m" => \$machine, ); if ($machine) { $machine = "//$machine" } $Registry->Delimiter("/"); $remote_key = $Registry->{"$machine/$root_key"} or die "Can't read $ro +ot_key: ", regLastError(), "\n"; while (($key, $value) = each(%$remote_key)) { if ($key =~ /allisbus/) { print "Found: $key\n"; } print "Reg key\t: $key, Reg value\t: $value \n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Remote Win32::TieRegistry
by thunders (Priest) on Jul 03, 2002 at 18:16 UTC | |
by Anonymous Monk on Jul 03, 2002 at 18:49 UTC | |
|
(tye)Re: Remote Win32::TieRegistry
by tye (Sage) on Jul 03, 2002 at 21:14 UTC | |
by Anonymous Monk on Jul 03, 2002 at 21:36 UTC | |
by tye (Sage) on Jul 03, 2002 at 23:30 UTC |