From: Eric Christopherson Date: 2013-06-04T04:18:54+09:00 Subject: How to evaluate VBscript in Ruby 2.0.0 under Windows 7 --047d7b2e41e6c8378004de44d5c1 Content-Type: text/plain; charset=UTF-8 I've run into a little more pain running my existing scripts using Ruby 2.0.0 on Windows 7. This time, I'm trying to run a script that creates and uses a WIN32OLE ScriptControl in order to run a VBscript script. It was working fine under 32-bit Windows XP and Ruby 1.9.3, but now when I run the line sc = WIN32OLE.new( "ScriptControl" ) I get: WIN32OLERuntimeError: failed to create WIN32OLE object from `ScriptControl' Is there a new way to run VBscript in Ruby 2.0.0 and/or Windows 7? Is it necessary to register components from the Windows side or something? If it matters, this machine also has Visual Studio 2010, which my old one did not. --047d7b2e41e6c8378004de44d5c1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I've run into a little more pain running my existing s= cripts using Ruby 2.0.0 on Windows 7. This time, I'm trying to run a sc= ript that creates and uses a WIN32OLE ScriptControl in order to run a VBscr= ipt script.

It was working fine under 32-bit Windows XP and Ruby 1.9.3, = but now when I run the line

=C2=A0 =C2=A0=C2=A0sc = =3D WIN32OLE.new( "ScriptControl" )

I get:

=C2=A0 =C2=A0=C2=A0WIN32OLERuntimeError: fa= iled to create WIN32OLE object from `ScriptControl'
Is there a new way to run VBscript in Ruby 2.0.0 and/or W= indows 7? Is it necessary to register components from the Windows side or s= omething? If it matters, this machine also has Visual Studio 2010, which my= old one did not.
--047d7b2e41e6c8378004de44d5c1--