The NameExt is an OS/2 command-line utility program that is used to display the contents of nodes in the OS/2 name space. The Open32 registry is part of the OS/2 name space. It resides under the node path DOS/WINOS2/WINREG.
By default, the information generated by this utility program is written to the terminal (STDOUT); however, the user can use the "-f" parameter to write the output to a file. NameExt has the flexibility to provide information to a single node (the default or -1 0), for all nodes at or below the specified node (-1 *), or to limit the depth in the name space. The user has even finer control in being able to select only nodes that satisfy a specific set of search criteria (the "-s" parameter). Finally, the user can:
Character strings will be output in display format if they contain all printable characters; otherwise they will be output in character-based hex format.
Syntax:
┌──────────────────────────────────────────────────────────────────────────────┐│ │
│ >>──NameExt──path──┬────────────────────────┬──────────────────────────────> │
│ └─-s ─┤ search_filter ├──┘ │
│ │
│ (3) │
│ >──┬──────────────────────────┬──-m ─────┬────────────────┬────────────────> │
│ │ ┌─,───────────────┐ │ └─-f output_file─┘ │
│ │ │ │ │
│ │ (1) │ │
│ ├─-i ──attribute_name──────┤ │
│ │ ┌─,───────────────┐ │ │
│ │ │ │ │
│ │ (2) │ │
│ └─-x ──attribute_name──────┘ │
│ │
│ ┌─-l 0 ────────────────┐ │
│ >──┼──────────────────────┼───────────────────────────────────────────────>< │
│ ├─-l levels_to_extract─┤ │
│ └─-l *─────────────────┘ │
│ │
│ SEARCH_FILTER: │
│ ┌─┤ logical_operator ├─┐ │
│ │ │ │ │
│ ├────┤ filter ├─────────┴─┴────────────────────────────────────────────────┤ │
│ │
│ LOGICAL_OPERATOR: │
│ ├──┬─AND─┬─────────────────────────────────────────────────────────────────┤ │
│ ├─OR──┤ │
│ └─XOR─┘ │
│ │
│ FILTER: │
│ ├──┬─attribute_name─┬─EQ─┬──┤ value_expression ├──┬────────────────────────┤ │
│ │ ├─NE─┤ │ │
│ │ ├─GT─┤ │ │
│ │ ├─GE─┤ │ │
│ │ ├─LT─┤ │ │
│ │ └─LE─┘ │ │
│ │ (4) │ │
│ ├─EXISTS(attribute_name)───────────────────────┤ │
│ │ (5) │ │
│ ├─RSTR(attribute_name) EQ string───────────────┤ │
│ │ (6) │ │
│ ├─LSTR(attribute_name) EQ string───────────────┤ │
│ │ (7) │ │
│ ├─MIDSTR(attribute_name) EQ string─────────────┤ │
│ ├─(─┤ filter ├─)───────────────────────────────┤ │
│ └─NOT(─┤ filter ├─)────────────────────────────┘ │
│ │
│ VALUE_EXPRESSION: │
│ ├──┬─([system_type─┬────────────┬─]value)───────┬──────────────────────────┤ │
│ │ └─:user_type─┘ │ │
│ │ ┌─,───┐ │ │
│ │ │ │ │
│ ├─([system_type[]─┬────────────┬─]──value┴─)─┤ │
│ │ └─:user_type─┘ │ │
│ ├─quoted_character_string────────────────────┤ │
│ │ ┌─,──────────────┐ │ │
│ │ │ │ │
│ └─{──value_expression┴─}─────────────────────┘ │
│ │
│ NOTES: │
│ (1) This form specifies that the list of attributes that follows should be │
│ included in the extract. │
│ │
│ (2) This form specifies that the list of attributes that follows should be │
│ excluded from the extract. │
│ │
│ (3) This form specifies that the extract contains only the metadata and the │
│ path name. │
│ │
│ (4) This expression is true if the attribute exists and has any value or no │
│ value. │
│ │
│ (5) This expression is true if the right-most portion of attribute_name's │
│ value equals the string. │
│ │
│ (6) This expression is true if the left-most portion of attribute_name's │
│ value equals the string. │
│ │
│ (7) This expression is true if the string appears anywhere in │
│ attribute_name's value. │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
Parameters:
path
BOOLEAN
CHAR
UCHAR
UNICHAR
INT8
UINT8
INT16
UNIT16
INT32
UINT32
BYTE
PORT
Return Codes:
There are currently no warnings (return codes of 4) issued by the utilities. A warning return code is included only for completeness. The error will be further identified by messages that are issued by the commands when errors are detected.
Example:
The following example displays the contents of the entire Open32 registry.
nameext dos\winos2\winreg -l *