From: Thufir Date: 2007-12-13T06:29:43+09:00 Subject: Re: working with the registry I would like to use: each_value() {|subkey, type, data| ...} iterator [Source] # File Win32API/lib/win32/registry.rb, line 624 def each_value index = 0 while true begin subkey = API.EnumValue(@hkey, index) rescue Error break end begin type, data = read(subkey) rescue Error next end yield subkey, type, data index += 1 end index end here's what I have: irb(main):040:3* irb(main):041:3* puts.each_key(Registry.open(Registry::HKEY_LOCAL_MACHINE, 'Software \Policies\')) irb(main):042:5' ' irb(main):043:5> irb(main):044:5* But I seem to be having some sort of problem with closing quotes (syntax). Can I do that with the puts method? thanks, Thufir