> I also found that %* works like $* in unix shells.

Not on Win9x, I'm afraid (I think it's an NT/2000 extension)

On the other hand, the batch file can portably be reduced
to a one-liner:

@ruby.exe mytest.rb %1 %2 %3 %4 %5