From: Peter Bailey Date: 2006-04-21T00:22:20+09:00 Subject: Re: Questions about copying using FileUtils ts wrote: >>>>>> "P" == Peter Bailey writes: > > P> psfiles = Dir.glob('*.ps') > P> psfiles.collect!{ |psfile| File.basename(psfile, '.ps') } > P> psfiles.each do |psfile| > P> puts psfile > P> FileUtils.cp("psfile", psfile + ".pageinfo") > > There is another problem, you have removed the suffix .ps with > File::basename, best to write it > > FileUtils.cp(psfile + ".ps", psfile + ".pageinfo") > > > > Guy Decoux Now that worked! Thank you! -- Posted via http://www.ruby-forum.com/.