Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: modify searchlist in registry

by larryk (Friar)
on Aug 07, 2002 at 12:52 UTC ( #188295=note: print w/ replies, xml ) Need Help??


in reply to modify searchlist in registry

Apart from the typo, it's because you missed out CurrentControlSet... the full "path" should be HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters.

P.S. The value is a hash so if you wanna look into it you'd be better with:

#!perl use strict; use warnings; use Data::Dumper; use Win32::TieRegistry; my $key = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ +Parameters'; my $parameter = $Registry->{$key}; print Dumper($parameter);
Although that will give you _loads_ of info!
   larryk                                          
perl -le "s,,reverse killer,e,y,rifle,lycra,,print"


Comment on Re: modify searchlist in registry
Download Code
Re: Re: modify searchlist in registry
by Anonymous Monk on Aug 07, 2002 at 14:03 UTC
    thanks, that works just fine, i can now retrieve the search list with;
    my $key = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ +Parameters\SearchList'; my $search_list = $Registry->{$key};
    but how about changing the value?
      just assign value to $Regitry->{key};, and registry will be updated via internal "tie" magic.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://188295]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2015-07-04 05:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls