From: gregarican Date: 2005-07-19T01:16:02+09:00 Subject: Re: windows - How to propagate environment variables to the system Armin wrote: > I would like to write a setup script that sets > some variables for the entire system like an installer. > When a new command prompt is opened, the values are now. You don't have to dig that deep in order to accomplish. This a quick way to get this done is through using the Ruby built-in ENV method. For example to create a new environmental variable called 'foo' and assign it the value 'bar' just issue the following: ENV['foo']='bar' then you can check the value by either issuing: ENV['foo'] or else using the system method, passing along the set command: system('set foo') Does this help?