From: Steve Callaway Date: 2005-07-19T23:54:30+09:00 Subject: Re: windows - How to propagate environment variables to the system You need to use setx.exe (downloadable from microsoft.com) and then flush a msg to WM_SETTINGCHANGE, an example of how to do this is at http://rubyforge.org/snippet/detail.php?type=snippet&id=56 rgds Steve Callaway --- Michael Neumann wrote: > 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. > > > > > > > ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs