John Gabriele wrote: > On 6/19/06, Peter Bailey <pbailey / bna.com> wrote: >> require 'FileUtils' >> >> ... >> >> ps2kfiles = >> Dir.glob("{aacmc7,acm059,acm061,acmc59,acmt59,adc064,adm065,cbncc7,cgmpr,cpslit,cpsmco,edc131,edt131,eeomc7,emgc15,hcc201,hcci01,hct201,hcti01,hla020,hlai20,hlb020,hlbi20,hltc20,hlti20,ierc78,itc101,jsc047,lrc013,lrfl21,lrnm21,lrrc21,lrrc22,lrrc24,lrrc37,lrrc49,lrrc74,lrrmc6,lrrt37,lrt013,mopc68,mopd68,mopec8,mopt68,pgc117,pslc45,psvc45,rtc129,uln007,}*.pdf") >> >> ps2kfiles.each do |ps2kfile| >> FileUtils.mv '#{ps2kfile}', 'C:/scripts/ruby/temp/test/indextemp/ps2k/' >> end >> > > Did you mean to have that last comma at the end of all those prefixes? > (prefixi? prefixin'? ;) ) > > ---John You¡Çre right. I did see that, and, I deleted it. It didn't change my results, though. But, as I told Matthew, it appears my problem here was not the glob itself, but the FileUtils move command. I replaced that, for now, with a simple system move command, and it works. Thanks! -- Posted via http://www.ruby-forum.com/.