My demo.rb:
puts ARGV.size ARGV.each do |a| puts \"Argument: #{a}\" end
The result depends on how we run a script:
>
Open a command window:
assoc .rb
is it rbFile?
ftype rbFile
Make sure that Ruby.exe is followed by "%1" %*
the %* is sometimes missing.