I can’t explain what the problem is, but if you add .exe to the command
string, it will work. My guess is that the system command is not
properly processing the given arguments to ultimately pass on to the
Win32 CreateProcess call.
Please always indicate which version of Ruby are you talking about
(run “ruby -v”)
calling system() with multiple arguments is not candidate of command/
shell expansion, it assumes you know what are you doing.
C:\windows\notepad does not exist… is notepad.exe
You need to include all.
This has changed in Ruby 1.9 but Ruby 1.8 is “broken” or not smart
enough to deal with this. Which brings again the importance of always
tell us which version are you talking about.