From: Thufir Date: 2008-01-17T14:22:57+09:00 Subject: iterating through the registry I want to iterate through the registry, getting results similar to "reg query"; what can I do with the "do |reg|", it seems that I need to pass something through the "chute": C:\code\reg> C:\code\reg>type reg.rb require 'rubygems' require 'win32/registry' include Win32 #desired output to match the output of: #reg query HKEY_LOCAL_MACHINE\Software\Policies\Microsoft Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE,'Software \Policies\Micr osoft') #do |reg| # type, data = reg.read('DataBasePath') C:\code\reg> C:\code\reg>ruby reg.rb C:\code\reg> C:\code\reg> thanks, Thufir