Ruby: How to open .exe file(that open CMD) and run command init -


i trying using ruby script task. have .exe file want run. when opening file open in cmd , can pass commands it. file located in c:\temp\test.exe need go directory , open file , insert command like: "getobject" task = "aa" program give me result cmd. need copy result text think can handle late.

i tried search online cant found anything.

thanks

if want open executable, can use `command` syntax in ruby. call:

`c:\temp\test.exe`  

that should run executable ruby script. can interact executable if ran cmd instead of ruby file.


Comments