From: Austin Ziegler Date: 2005-05-26T21:27:36+09:00 Subject: Re: setting environment variables using windows batch file On 5/26/05, Afaque Ahmad wrote: > I am having problems setting and reading enviroment variables from > a windows batch file. Simply put, you can't do this. #exec and #system start new copies of the command interpreter (cmd.exe) and the environment variables are set in that environment, which is subordinate to the Ruby interpreter process. You'd be better off parsing the BAT file for SET commands. And using ENV. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca