[PROLOGUE: I am running Ruby (ruby 1.9.3p484 (2013-11-22)
[i386-mingw32]) on Windows Server 2008 using the Windows Installer.]
I can run wbadmin from the command line like this:
$ c:\windows\system32\wbadmin.exe -?
And it works (I get a proper help message, ellided here). However, when
I try it in Ruby (as in this IRB session:)
irb(main):001:0> w=IO.popen(‘c:\windows\system32\wbadmin.exe -?’)
I get the following error:
Errno::ENOENT: No such file or directory -
c:\windows\system32\wbadmin.exe -?
from (irb):1:in popen' from (irb):1 from C:/Ruby193/bin/irb:12:in
’
This is preventing me from ever running wbadmin like this.
Any ideas why?