From: Ralph Shnelvar Date: 2010-01-12T04:50:03+09:00 Subject: Re: File::exists?( "filename with a blank in it" ) Matthew K. Williams wrote: > On Tue, 12 Jan 2010, Ralph Shnelvar wrote: > >> Newbie here/ >> >> Consider >> >> IMAGEMAGICK_EXE_PATH = '"f:\Program Files\ImageMagick-6.5.8-Q16\convert.exe"' >> > > The issue isn't so much that you have a blank in it as that you've added > an extra set of quotes -- in the example above, your filename has double > quotes at the beginning and end. Drop the double quotes and it should > work fine, assuming the path is correct. > > Matt Isn't a Windows pathname with surrounding double quotes a valid pathname?!?!? What's the best Ruby-esque way to stip out surrounding double quotes if they exist? And ,yes, your example and Rob Biedenharn's example both work. Thank you to both. -- Posted via http://www.ruby-forum.com/.