Armin, Take a look at ruby/ext/Win32API/lib/win32/registry.rb I guess this is what you want. Regards, Michael armin / approximity.com wrote: > Sorry, but if you open a new command prompt window, foo is not known. > > Try this: > set foo="34" in one command prompt > > open a new comand prompt > type > set > foo will not show up. > >