------ art_70836_5919171.1155574181299 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 8/14/06, Jan Svitok <jan.svitok / gmail.com> wrote: > > On 8/14/06, Cameron, Gemma (UK) <gemma.cameron / baesystems.com> wrote: > > > > Hi all! > > > > I'm another Ruby noob and wondered if any of you can help me with my > problem. > > > > I've have been tasked with writing some rake files to automate parts of > our project and to begin I'm trying to automate the setup of the build > machine. The first task is to set the environment variables. > > > > Can this be done in Ruby without using system("%PATH% = > %PATH%;c:\ruby\bin") etc.? > > > > Thanks in advance!!!! ( : > > ENV['PATH'] += "c:\ruby\bin" ENV cannot be assigned too. Sorry :( Robert will be vaild only in processes that you'll start from your script, in > other words, you cannot modify parent environment. (you could do by > some batch file wizardry) > > J. > > -- Deux choses sont infinies : l'univers et la bóŐise humaine ; en ce qui concerne l'univers, je n'en ai pas acquis la certitude absolue. - Albert Einstein ------ art_70836_5919171.1155574181299--