In article <9504t2$4lp$1 / b5nntp2.channeli.net>,
¹عبٌ¼·\(Park, Hee-Sob\) <phasis / channeli.net> wrote:
>
>"Phil Tomson" <ptkwt / user2.teleport.com> wrote in message
(snipped all my whining  about system and backticks not working right on
windows)
>
>Hi,
>
>To remove system command or backticks problems on Windows,
>you must build ruby biniary with MS Visual C++ compiler.
>

Hmmm... So that's what's going on.  So the self-installing Windows version
of Ruby is build on cygwin and that leads to these sorts of problems.
Could someone make a Ruby Binary build with Visual C++ available?

Does this also mean that if I run my Ruby programs in a bash window that
system commands and backticks will work the way I want them to?


>or define your own method like this
>
>require 'Win32API'
>
>def system(command)
>  Win32API.new("crtdll", "system", ['P'], 'L').Call(command)
>end
>
I'll try this.  Will it return the exit code of the command or program
that it runs?



Phil