# HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.tif\OpenWithList require "win32/registry" #Win32::Registry::HKEY_CURRENT_USER.open('Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\').each_key do | name,time | # p name #end Win32::Registry::HKEY_CURRENT_USER.open('Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\.pdf').each_key do | name,wtime | p name end