From: "David A. Black" Date: 2005-11-21T13:27:10+09:00 Subject: Re: Dir Hi -- On Mon, 21 Nov 2005, ces.fci@gmail.com wrote: > You could do: > Dir["c:/wes/photos/Bike/*.JPG"].each { |x| puts "Got#{x}" } > > change JPG to [JPGjpg] to be ignore the case. You'd actually need to do: *.[Jj][Pp][Gg] With *.[JPGjpg] you'll only match files like file.J and file.p. You could also do: *.{jpg,JPG} if you're sure that those are the only two (i.e., nothing like JpG). David -- David A. Black dblack@wobblini.net