title: Ruby: Can I update the system environment variables?
body: <p>Is there a way to update a system's PATH variable through Ruby, permanently? I have the following:</p>
  
  <pre><code>envPath = ENV["PATH"].dup
  if envPath.include? "C:\\oracle\\product\\11.2.0\\client_1\\bin;" then
      envPath.slice! "C:\\oracle\\product\\11.2.0\\client_1\\bin;"
      ENV["PATH"] = envPath
      puts ENV["PATH"]
  end
  </code></pre>
  
  <p>This successfully removes the variable I want to, but only for the current window - not permanently.</p>