ruby 在 windows 中 新建进程 打开其他程序
引入 win32ole
即可调用
ShellExecute 方法
require 'win32ole'
shell = WIN32OLE.new('Shell.Application')
shell.ShellExecute(FILE, ARGUMENTS, DIRECTORY, OPERATION, SHOW)
详细见: http://rubyonwindows.blogspot.com/2007/05/launching-apps-and-printing-docs-with.html
posted on 2011-10-25 10:17 Eric812048774 阅读(269) 评论(0) 收藏 举报
浙公网安备 33010602011771号