From: ptkwt@...2.teleport.com (Phil Tomson) Date: 2001-01-29T16:40:12+09:00 Subject: [ruby-talk:10048] Re: system command on Windows(Arrgghhh!) In article <9504t2$4lp$1@b5nntp2.channeli.net>, 酵費七\(Park, Hee-Sob\) wrote: > >"Phil Tomson" 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