Iterate through Registry
-
Hi, does anyone know how to iterate through a registry. I have a registry key \HKEY_CURRENT_USER\Software\MyTest and that has several folder below it: \HKEY_CURRENT_USER\Software\MyTest\FolderA \HKEY_CURRENT_USER\Software\MyTest\FolderB \HKEY_CURRENT_USER\Software\MyTest\FolderC I need some find some function in VB.Net 2005 that will produce a list or array like: FolderA FolderB FolderC I searched through CodeProject but couldnt find anything like that. Any response gratefully appreciated. Mark
-
Hi, does anyone know how to iterate through a registry. I have a registry key \HKEY_CURRENT_USER\Software\MyTest and that has several folder below it: \HKEY_CURRENT_USER\Software\MyTest\FolderA \HKEY_CURRENT_USER\Software\MyTest\FolderB \HKEY_CURRENT_USER\Software\MyTest\FolderC I need some find some function in VB.Net 2005 that will produce a list or array like: FolderA FolderB FolderC I searched through CodeProject but couldnt find anything like that. Any response gratefully appreciated. Mark
Hi, have a look at the
Registry
class and theRegistryKey
class espcially itsGetSubKeyNames
function. Robert