Is there a way to update a system's PATH variable through Ruby, permanently? I have the following:
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
This successfully removes the variable I want to, but only for the current window - not permanently.