| Purpose: | Display the specified Windows Registry tree |
| Format: | REGDIR [/= /D /F /Nb /P[n] /Sn /T /TS /V /X] keyname |
| keyname | The Windows Registry key to enumerate |
Usage:
REGDIR will display the Windows Registry like TREE or DIR does with the file system. The Windows Registry is very large, so trying to display something like:
regdir /v /d hkcu\software
will typically display tens of thousands of lines.
The key must begin with either the full root key or the short name:
| Full root key | Short |
| HKEY_CLASSES_ROOT | HKCR |
| HKEY_CURRENT_USER | HKCU |
| HKEY_LOCAL_MACHINE | HKLM |
| HKEY_USERS | HKU |
| HKEY_CURRENT_CONFIG | HKCC |
| HKEY_PERFORMANCE_DATA | HKPD |
If you don't enter any arguments, REGDIR will display its command dialog.
Option:
| /= | Display the REGDIR command dialog to help you set the command line options. The /= option can be anywhere on the line; additional options will set the appropriate fields in the command dialog. |
| /F | Display the full name for each key. (The default is to display only the indented name of the current key, similar to TREE's output.) |
| /P[n] | Pause after displaying each page. The /P option has an optional argument n that specifies the number of seconds to wait for a keystroke before continuing. |
| /S | REGDIR will limit the nesting recursion to that number. REGDIR defaults to unlimited key recursion. |