Platinum Partner

Launching The Default Web Browser On MS Windows

# This code will launch your default web browser to the URL you provide


require 'Win32API'

ShellExecute = Win32API.new('shell32', 'ShellExecute', 'LPPPPI', 'L')

unless ShellExecute.call(0, 'open', 'http://www.rubyforge.org', 0, 0, 1) > 0
   raise "ShellExecute failed"
end
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}