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?

Larry.
-- 
Posted via http://www.ruby-forum.com/.