Rubyについて Part 15
■ このスレッドは過去ログ倉庫に格納されています
0620619
2005/03/30(水) 01:05:58require 'Win32API'
SW_SHOW = 5
def shell_execute_open(file = nil, parameters = nil, directory = nil, showcmd = SW_SHOW)
shell_exec = Win32API.new('shell32', 'ShellExecute', %w(p p p p p i), 'i')
shell_exec.call(nil, 'open', file.to_s, parameters.to_s, directory.to_s, showcmd)
end
shell_execute_open("./index.html")
■ このスレッドは過去ログ倉庫に格納されています