From: Dave Thomas Date: 2001-01-18T02:12:27+09:00 Subject: [ruby-talk:9461] Re: Passing cmd-line args through .rb shortc ut on Win? "Morris, Chris" writes: > > It's a bug in the file association which is fixed in the 1.6.2 > > InstallShield version. You can do it yourself with a quick registry > > hack. In HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES change the rbFile\open > > shell command to have "%*" at the end. > > Now it seems my arguments are being passed to ruby.exe, not myruby.rb -- can > I get them into myruby.rb? I just checked this on my NT box. My key HKEY_ROOT_CLASSES\rbfile\shell\open\command is "path to ruby.exe" "%1" %* and it seems to work, C> copy con test.rb: puts ARGV.join(", ") ^Z C> test.rb 1 2 3 1, 2, 3 Dave