MATLAB: Is there a way to use WINQUERYREG or another MATLAB feature to list the names of subkeys under a given key in the Windows registry

MATLAB

I want to list the subkeys under a given key in the Windows registry. I want to know if there is a function to do this in MATLAB.

Best Answer

The ability to query the subkeys under a given key in Windows registry is not available in MATLAB.
To work around this issue, SYSTEM command can be used used with the Windows query which queries the subkeys of a particular key as follows:
[ok,txt] = system('reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall')
The output can be parsed through to list the names of subkeys.