Group: comp.lang.ruby
From: "toby.oconnell@gmail.com"
Date: Monday, February 18, 2008 12:20 AM
Subject: Re: how to use ruby run a mp3 file?

On Feb 17, 10:02=A0am, Tim Hunter wrote:
> 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")
>
>
> Do you need to escape those backslashes?
>
> G:\\Itunes etc.
>
> --
> RMagick:http://rmagick.rubyforge.org/
> RMagick 2:http://rmagick.rubyforge.org/rmagick2.html

Or just use single quotes (or %q{start G:\blah.mp3}) rather than
double quotes if you don't need to interpolate the string. That will
make it easier to read than the extra \'s.

irb(main):001:0> %q{start G:\blah.mp3}
=3D> "start G:\\blah.mp3"

Safety Articles | Usenet Groups | Usenet News | Bluegrass