From: William Crawford Date: 2006-09-23T01:56:43+09:00 Subject: Re: discovering the OS dc wrote: > if (windows) > system "start file.html" > else if (mac) > system "open file.html" else puts "Oy, nevermind! You can open it yourself!" > end > hehe Found this on Google. http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/47795 It looks like Config::CONFIG["arch"] is what you need to be looking at. -- Posted via http://www.ruby-forum.com/.