in reply to Adding Registry Keys & Values
Take a look at Win32::TieRegistry. This example creates foo, and set its value to bar. This same syntax is also good for modification: Change bar to whatever you want, and run the script again, you should see the value change.
use Win32::TieRegistry; $registry = Win32::TieRegistry->new("CUser"); $registry->SetValue("foo", "bar");
This sets a new value under HKEY_CURRENT_USER/AppEvents:
use Win32::TieRegistry; $registry = Win32::TieRegistry->new("CUser/AppEvents", {Delimiter => " +/"}); $registry->SetValue("foo", "something");
This creates a new key (or a path if you want to call it this way):
use Win32::TieRegistry; $registry = Win32::TieRegistry->new("CUser", {Delimiter => "/"}); $registry->CreateKey("foo");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Adding Registry Keys & Values
by Jenda (Abbot) on Nov 10, 2004 at 22:09 UTC | |
by Anonymous Monk on Nov 11, 2004 at 11:23 UTC | |
|
Re^2: Adding Registry Keys & Values
by tye (Sage) on Nov 10, 2004 at 23:36 UTC | |
by Anonymous Monk on Nov 11, 2004 at 11:28 UTC | |
by Anonymous Monk on Nov 11, 2004 at 12:20 UTC |