[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

how to call a .exe file in a ruby program

yukme

2/15/2007 9:42:00 AM

There is a executable file named "my_app.exe" and i want to run it in my
ruby program.
How should i do?
thanks

--
Posted via http://www.ruby-....

1 Answer

Harold Hausman

2/15/2007 10:10:00 AM

0

On 2/15/07, yukme <yu-xiaobing@hzfuji.com> wrote:
> There is a executable file named "my_app.exe" and i want to run it in my
> ruby program.
> How should i do?
> thanks
>

Since you mention .exe I assume your on windows.

Have a look at IO.popen
http://www.ruby-doc.org/core/classes/IO.ht...

hth,
-Harold