Registry.ListKeys
-----------------

Lists all sub keys of a key.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Registry](component_Registry.md) | [7.2](newinversion72.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "Registry.ListKeys"; Path ) 

**MBS**( **"Registry.ListKeys";** /\* Lists all sub keys of a key. \*/  
**$Path**) /\* The path to the registry key.  
Separated by \\ you specify the path to the key you want.  
Root can be Classes, CurrentUser, LocalMachine, Users, PerformanceData, CurrentConfig, DynData or the HKEY names.e.g. "Users\\test" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Path | The path to the registry key.   Separated by \\ you specify the path to the key you want.   Root can be Classes, CurrentUser, LocalMachine, Users, PerformanceData, CurrentConfig, DynData or the HKEY names. | "Users\\test" |

### Result

Returns list or error.

### Description

Lists all sub keys of a key.  
### Examples

Lists all keys in CurrentUser:

 MBS ( "Registry.ListKeys"; "CurrentUser")  
### See also

- [Registry.FlushKey](RegistryFlushKey.md)
- [Registry.ListValues](RegistryListValues.md)

This function checks for a license.

Created 20th March 2017 , last changed 20th March 2017

  
[Registry.GetValueType](RegistryGetValueType.md) - [Registry.ListValues](RegistryListValues.md)

[HTML Version](RegistryListKeys.shtml)