From: Jano Svitok Date: 2008-02-18T23:19:21+09:00 Subject: Re: how to use ruby run a mp3 file? On Feb 17, 2008 5:01 PM, Adam Akhtar wrote: > Hi im having a problem playing a song. Im basically got this is my file > > system( "start G:\Itunes_To be imported\02 - Anne Clark - The Power > Game.mp3") > > and then running it from within Radrails. > > Its keeps complaining "Windows cannot find the file 'G:\Itunes'....." > > What am i doing wrong? (The song definately is in that path as i copied > its path from its properties) I guess you need to quote the file name, i.e. system( "start \"G:\\Itunes_To be imported\\02 - Anne Clark - The Power Game.mp3\"") otherwise the start command considers only the first "word" as the command to execute, and the rest are parameters to that command. Note: due to ****** (censored) design of the start command, any time you need to quote the command, you have to add "" in front of it, otherwise the command ends as the window title. So the final version is: system( "start \"\" \"G:\\Itunes_To be imported\\02 - Anne Clark - The Power Game.mp3\"") Jano