Run external programs in Ruby

It is easy, the syntax is:
[sourcecode language=”ruby”]system(FilePath)[/sourcecode]
You should use slash ( ) to notify special characters. Like this:
[sourcecode language=”ruby”]system("C:Program Filesfile.exe")[/sourcecode]

Leave a Reply

%d bloggers like this: