Welcome to Working With Rails

 

Discussion Forums

Discuss all things Ruby on Rails with perhaps the web's most vibrant group of Ruby on Rails enthusiasts.
How to run exe file in ruby?
5 Posts
How to run exe file in ruby?

Thanks Rails Team..

Prathap Rajamani

WOW!! Thanks both of u to reply me.

Person
Forum Rating: 100
Sign In To Rate Post

Hi abdul,

You can even run an exe in your .rb like :

`C:\\Program Files\\file.exe`

Same you can run on your projects ruby console like :

>> C:\\Program Files\\file.exe

  • Note : - Just need to place filename-with-location into this quotes. ;)

Good luck..! :)

Cheersss!

-Ganesh Kathare.

Person
Jruby, Ruby, Rails Programmer
Sign In To Rate Post

Hi Abdul, you can run an exe file in Ruby as follows (i.e.):

system("C:\\Program Files\\file.exe")

I hope that you find useful. greets

Person
Forum Rating: 100
Sign In To Rate Post

Hello All, Do u know how to run exe file in ruby? I am expecting something like this :

ruby_built_in_method("E:\locations\file.exe") OR any way??

Thanks

Person
Forum Rating: 100
Sign In To Rate Post
5 Posts
Login to add your message