From: w_a_x_man Date: 2009-12-15T05:55:07+09:00 Subject: Re: one-liner for lowercasing files On Dec 14, 12:04 pm, Peter Bailey wrote: > Still no good. Here's what I get: > > >ruby -e 'Dir.glob("*.*").each { |fn| File.rename(fn, fn.downcase) }' > > 'fn' is not recognized as an internal or external command, > operable program or batch file. > > E:\Asura-Non\BWDhelp\temp> Do not top-post. Since you are using the windoze shell, you must learn some things about the windoze shell. Does that make sense? In this case, the Ruby code must be enclosed in double quotes. Try this. ruby -e "Dir['*'].each{|fn| p fn.downcase }"