ej has asked for the wisdom of the Perl Monks concerning the following question:
use Win32::TieRegistry (Delimiter => "/"); my $key; my $host = "ajax"; if ($key = $Registry->Open("//$host/LMachine/SOFTWARE/FOO/BAR/")) { $key->CreateKey("NewKey//") or print "$^E\n"; $key = $Registry->Open("//$host/LMachine/SOFTWARE/FOO/BAR/NewKey/"); $key->SetValue("MACAddress", "BIGMAC") or print "$^E\n"; } else { print "Error: $^E\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Modifying Win32 registry on remote hosts
by ibanix (Hermit) on Nov 20, 2002 at 23:17 UTC | |
by tye (Sage) on Nov 21, 2002 at 01:16 UTC | |
|
Re: Modifying Win32 registry on remote hosts
by traveler (Parson) on Nov 20, 2002 at 22:34 UTC | |
|
Re: Modifying Win32 registry on remote hosts
by ej (Initiate) on Nov 21, 2002 at 14:27 UTC | |
by Marza (Vicar) on Nov 21, 2002 at 18:43 UTC | |
|
Re: Modifying Win32 registry on remote hosts
by ej (Initiate) on Nov 22, 2002 at 14:33 UTC |