From: Robby Russell Date: 2007-07-30T07:48:55+09:00 Subject: Re: how to use ruby run a mp3 file? Zhenning Guan wrote: > I want to use ruby run excute mp3 file,but I don't know how to get it > work。 > I have a song on D drive and I write a callme.rb > ++++++++++ > def callme > system("2k7.mp3" ) > end > callme > +++++++++ > > I am run "ruby callme.rb" in "CMD" > but didn't run the 2k7.mp3 song > why? how shoud I do it right? > > > my system is windows XP The Rails plugin, ActsAsHasselhoff[1], provided a way to do this from within Ruby on Rails. Might be worth looking over the code[2]. ;-) [1] http://interblah.net/2006/10/4/ajaxworld-presentation [2] http://rubyurl.com/yrf Good luck! Robby -- Robby Russell http://www.robbyonrails.com/ http://www.planetargon.com/