Method: Rex::Compat.open_file

Defined in:
lib/rex/compat.rb

.open_file(url = '') ⇒ Object



107
108
109
110
111
112
113
114
115
# File 'lib/rex/compat.rb', line 107

def self.open_file(url='')
  case RUBY_PLATFORM
  when /cygwin/
    path = self.cygwin_to_win32(url)
    system(["cmd", "cmd"], "/c", "explorer", path)
  else
    self.open_browser(url)
  end
end