With Ruby you can make wonders ;) This snippet shows how to read all subvalues of a key at one time.
1 2 3 4 5 6 7 8 9 10 11 | require 'win32/registry'
require 'pp'
Win32::Registry::HKEY_CURRENT_USER.open(
'Software\Sysinternals'
) do |reg|
reg.each_key do |key1, key2|
val = reg.open(key1)
pp val.inject([]) {|i, j| i << j}
end
end
|
Tags: registry