mark-registry(2)
[Home]
[Commands]
[Variables]
[Macro-Dev]
[Glossary]
NAME
SYNOPSIS
DESCRIPTION
mark-registry modifies the mode of a registry node root. If an argument n is supplied then the nth register node down from root (as viewed from
list-registry(2) output) is modified instead. The mode is string specifying the modes, each mode is represented by a character. Lower case characters add a mode, upper case characters delete a mode. The modes are defined as:-
? - Query Name
Returns the full name, including path, of the given registry node in the variable
$result(5). This does not alter the registry.
! - Hide Value
Hides the value of the given registry node, i.e. the node is displayed but its value will not be displayed in the output of
list-registry(2). Once set, this mode cannot be removed.
a - Autosave
Automatically saves the registry when it is deleted or unloaded from the registry. The user is not prompted for a save.
b - Backup
Automatically performs a backup of the registry file whenever a save operation is performed.
c - Create
If the registry file cannot be loaded then the root node is created and the invocation succeeds. If this mode is omitted then the call fails if the file cannot be found.
d - Discard
Marks the registry as discardable. This is typically used for registries that are not saved.
f - File
The registry node is marked as a file root, the value must be set to the registry file name.
g - Get Modes
Returns the list of modes currently set on the given registry node in the variable
$result(5). This does not alter the registry.
h - Hierarchy Hidden
The registry node is marked as Hidden, i.e. its children will not be shown in
list-registry(2) output. A node is marked has hidden when it is folded up.
i - Invisible
m - Merge
r - Reload
u - Updated
Marks the registry as modified. The modified bit is removed when the registry file is saved. If the modified bit is applied to a registry node the user will be prompted to save the registry when it is deleted (or it will be automatically saved when the Autosave mode is used).
y - Encryption
Marks the registry node for encryption. The value of the registry node is encrypted using the internal encryption algorithm. The value will not appear in plain text when using
save-registry(2). This is typically used for password information etc.
Multiple modes may be applied.
EXAMPLE
mark-registry "/history" "h"
It could then be made visible again using:-
mark-registry "/history" "H"
BUGS
DIAGNOSTICS
SEE ALSO
(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12