However the following error occurs:
[Bug] Segmentation fault
ruby 1.8.4 (2005-12-24) [i386-mswin32]
Any ideas? Or am I doing something wrong here?
Ruby shouldn’t exit like that, that’s an extension bug or a Ruby bug,
but I can’t repeat it on my workstation with the same version of Ruby.
Have you posted the complete script? Because that snippet has numerous
errors out of context: WIN32OLE and comObject don’t exist.
However the following error occurs:
[Bug] Segmentation fault
ruby 1.8.4 (2005-12-24) [i386-mswin32]
Any ideas? Or am I doing something wrong here?
Posting the full script would help. However, I took a swing at it and
came up with this:
p ruby -v
require ‘win32ole’
objShell = WIN32OLE.new(“WScript.Shell”)
ruby -w winScript.rb
“ruby 1.8.2 (2004-12-25) [i386-mswin32]\n”
winScript.rb:7:in `method_missing’: (WIN32OLERuntimeError)
OLE error code:800A017C in ScriptControl
A script engine for the specified language can not be created.
HRESULT error code:0x80020009
Exception occurred. from winScript.rb:7
Exit code: 1
So it looks like MSScriptControl doesn’t like “RubyScript”.