From: Wayne Blair Date: 2001-05-30T02:11:24+09:00 Subject: [ruby-talk:15944] Re: Open a Web Browser in Windows "Sloth" wrote in message news:67abb823.0105290613.37f8679f@posting.google.com... > Is anyone aware of a way to automatically open and redirect a web > browser (under Win) using Ruby? In Python, there is a webbrowser() > method that allows a script to open a browser to a given location. > > Thanks in advance! I'm trying to convert my Python code to Ruby just > as fast as I can!!! > > Jeremy. Yeah, it's real easy: You can see Microsoft documentation for OLE commands IWebBrowser2 - I tried quite a few and they all worked. Here's an example from the pickaxe book: require 'win32ole' ie = WIN32OLE.new('InternetExplorer.Application') ie.visible = true ie.gohome # to navigate, for example: ie.navigate(url)