kaiprt kaiprt - 7 months ago 29
Ruby Question

Ruby: Execute bat file with batch parameters

I am trying to execute a .bat file with ruby and I see I can do that with

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`