kaiprt kaiprt - 6 months ago 18
Ruby Question

How to execute .bat file with batch parameters

I am trying to execute a .bat file with Ruby using:

System("path\to\.bat")


However, I would like to pass parameters to this file. Is this possible?

Answer

Just pass them as you would do it normally.

`path\to\.bat -some=flag another-way`
Comments