coleda willcoledacom thu aug 7 2008 938 tara wrote im trying perl script pc perl5 installed bat file open cmd prompt interact user copy files one location directories anyone know dir files directory array sort date return ones within past week far code returns files files dir chomp files print files n files qq exit 0 files xml print recently added xml files files n printf copylog recently added xml files files n type xml elsif files tc print copying expected result file n printf copylog copying expected result file n type tc else print invalid file type files doesnt exist current directoryn printf copylog invalid file type files doesnt exist current directoryn type bad apologies list discussion next generation perl perl 6 help current version perl 5 id recommend starting httpwwwperlorg looking online documentation various community links said id recommend taking look output command perldoc find2perl regards coke coleda thu 07 aug 2008 134742 0400 windows xp copyfile