set-registry - Modify a node value in the registry.
set-registry "root" "value"
2 set-registry "root" "new-name"
The registry is a hierarchical tree of node names optionally with associated node values that is used for storing and retrieving values. The registry mechanism is used for saving and retrieving persistent user information between sessions.
set-registry adds a new value or modifies an existing value in the registry. root is an absolute path node name to the new entry. The first path component MUST exist or the call fails, subsequent path components (a `/' separated path) are created if they do not already exist. value is the value to assign to the node.
If a numeric argument of 2 is specified the root is renamed to new-name, the root must exist or the call fails. If the new-name contains a path (i.e. "new/path/name") the registry node is moved to the new path which must be an existing absolute path, i.e. not relative to its current location.
The value assigned to a node with set-registry may be retrieved using ®(4).
The following call (where the registry node /history already exists):
set-registry "/history/foo/win32/printer" "foo-bar"
constructs a registry hierarchy of the form:-
"history" { "foo" { "win32" { "printer"="foo-bar"; } } }
The value of the registry node may be retrieved using:-
® "/history/foo/win32/printer"
which would return the value "foo-bar".
The get-registry(2) command was removed in January 2005 in preference to the ®(4) function, the existing get command was never used.
copy-registry(3), delete-registry(2), find-registry(2), list-registry(2), mark-registry(2), read-registry(2), ®(4), erf(8).
(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12