1

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 `<main>'

This is preventing me from ever running wbadmin like this.

Any ideas why?

Drew Mills
  • 65
  • 1
  • 1
  • 6

1 Answers1

2

I would suspect that your Ruby binary is 32-bit. A 32-bit program "sees" the "C:\WINDOWS\SYSWOW64" directory as "C:\WINDOWS\SYSTEM32", and there's no wbadmin.exe in "C:\WINDOWS\SYSWOW64".

Evan Anderson
  • 141,071
  • 19
  • 191
  • 328
  • Thank you. This is good info. I'll look into this and respond. – Drew Mills Jan 09 '14 at 14:13
  • THANK YOU!! This was exactly right. I completely uninstalled Ruby 1.9 and installed Ruby 2.0-64 and everything works. I would upvote you myself but I got no reputation. :) – Drew Mills Jan 09 '14 at 14:37
  • @ustamills - re: the upvote - That's alright-- I've got more than enough rep (though ewwhite is getting uncomfortably close). I'm glad I could help you out. – Evan Anderson Jan 09 '14 at 17:37