My demo.rb:
puts ARGV.size ARGV.each do |a| puts \"Argument: #{a}\" end
The result depends on how we run a script:
>
C:\Temp> ftype | grep ruby rbFile="c:\opt\ruby\bin\ruby.exe" "%1" %* rbwFile="c:\opt\ruby\bin\rubyw.exe" "%1" %*