From: Shea Martin Date: 2006-03-15T01:28:46+09:00 Subject: Re: popen broken in win32? > > The solution to make it work seems to be this: > > l_cmd = "devenv my_solution.sln /rebuild 'release Win32'" > IO.popen("cmd.exe", IO::RDWR) do | pipe | > pipe.puts l_cmd > pipe.each_line { |line| puts line } > end Oops, the above, leaves the cmd shell open, this is better: l_cmd = "devenv my_solution.sln /rebuild 'release Win32'" IO.popen("cmd.exe /c #{l_cmd}") do | pipe | pipe.each_line { |line| puts line } end