From: Jeremy Bopp Date: 2010-10-01T06:49:54+09:00 Subject: Re: system() command line args On 9/30/2010 4:13 PM, Larry Jones wrote: > System command won’t work with arguments. > > For example, a simple test in Windows (launch Notepad from ruby..) > > command = 'c:\windows\notepad’ > arg = “myfile.txt” > system(command, arg) > > Remove the arg and Notepad launches fine. > Notepad (or any other program) won't launch with command line arguments. > > Am I missing something? 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. BTW, this appears to be fixed in Ruby 1.9.1. -Jeremy