DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Copying Files Help.

  • submit to reddit
        I'm probably not using this board right but hopefully someone can help me out.  I'm relatively new to perl... but I've done a little bit of batch scripting so I am used to how the language works and can learn easily.  My problem is that I need to copy a file from one drive and paste it into a folder on a different drive.  This process takes place daily and is followed by other tasks, but I need to know how to copy a file whose name is always different because there is a date stamp in the middle of the file name.  If anyone can help me out i'd be greatly appreciateive.  PLEASE HELP ME!    


Snippets Manager replied on Mon, 2012/05/07 - 1:14pm

How do you anticipate finding out what the filename is then? Or do you want to use wildcards?