From: Dave Thomas Date: 2001-01-18T00:32:38+09:00 Subject: [ruby-talk:9445] Re: Passing cmd-line args through .rb shortcut on Win? "Morris, Chris" writes: > rb files are associated to ruby.exe - that works fine. If I set up a > shortcut to an .rb file, then edit the shortcut to include command-line > arguments, these are not passed in: > > D:\Dev\myruby.rb -a blah -b blah -c blah > > ..anyone know a way to do this? 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. Regards Dave