From: Austin Ziegler Date: 2006-08-15T01:57:14+09:00 Subject: Re: Setting Windows Environment Variables On 8/14/06, Robert Dober wrote: > ENV cannot be assigned too. >> ENV["PATH"] => "C:\\Ruby\\bin;..." >> ENV["PATH"] += ";C:\\tmp" => "C:\\Ruby\\bin;...;C:\\tmp" >> system("cmd") Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\home>PATH PATH=C:\Ruby\bin;...;C:\tmp The environment CAN be assigned to. What you can't do is propagate it upwards. Any processes you spawn from your Ruby application will use your new environment table, but you can't call a Ruby application to set your environment in its parent. -austin -- Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ * austin@halostatue.ca * http://www.halostatue.ca/feed/ * austin@zieglers.ca