Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
the Function:
GetRegistryString(path, key)
delivers from key's with type REG_MULTI_SZ only the first row back. How can I get the complete key?
Thanks
Marcus
Hi Marcus,
I haven't managed to do this through the GetRegistryString function, but you can read via vbscript in a macro ...
Sub GetMultiValueKey
Dim objRegistry, Key
Set objRegistry = CreateObject("Wscript.shell")
Key = objRegistry.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Secondary Start Pages")
MsgBox Key(1)
End Sub
This appears to place all values into an array, so the first value will be key(0), then key(1) etc.. If number of values is unknown to you, you will need to loop through from 0 to UBound(Key) to retrieve each value.
flipside
Hello,
no ideas? A statement/opinion that is impossible will be also helpful.
Thanks
Marcus
Hi Marcus,
I haven't managed to do this through the GetRegistryString function, but you can read via vbscript in a macro ...
Sub GetMultiValueKey
Dim objRegistry, Key
Set objRegistry = CreateObject("Wscript.shell")
Key = objRegistry.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Secondary Start Pages")
MsgBox Key(1)
End Sub
This appears to place all values into an array, so the first value will be key(0), then key(1) etc.. If number of values is unknown to you, you will need to loop through from 0 to UBound(Key) to retrieve each value.
flipside
Hi flipside,
thank you for your response - it works very well.
Marcus