How to invoke a exe(eg.vlc.exe) using ruby script

hi ,
   i m trying to invoke a .exe in ruby script . basically i need to open
the beyond compare.exe with 2 arguments as two file names and execute it
and get the result

i also wanted to call a .bat file in ruby
pls help how wil i do this

-sangeeta

···

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

Thanks to Saifi
     i got it and works fine

Sangeeta Huddar wrote:

···

hi ,
   i m trying to invoke a .exe in ruby script . basically i need to open
the beyond compare.exe with 2 arguments as two file names and execute it
and get the result

i also wanted to call a .bat file in ruby
pls help how wil i do this

-sangeeta

--
Posted via http://www.ruby-forum.com/\.