From: Navaneet Kumar Date: 2010-07-08T18:45:38+09:00 Subject: Re: Changing registry values with Win32::Registry Jesús Gabriel y Galán wrote: > On Thu, Jul 8, 2010 at 10:52 AM, Navaneet Kumar > wrote: >> � �end >> >> I need another instance to open for different REG_PATH. The reason >> behind that is if the reg key is in first path then return the value >> other wise open the key to read the reg key from different path. > > I have no idea about that API, but if read_i is returning nil for > non-existing keys, you can try this: > > unless (key = reg.read_i(name)).nil? > return key > end > > Jesus. Thanks for your reply. Just clarification, The specified key is not exist not the value is having null. I mean the 'name' key is not exist in that path. How do we handle this in ruby. -- Posted via http://www.ruby-forum.com/.