Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching the directories for matching timestamp.

Status
Not open for further replies.

mylvaga

Programmer
Aug 27, 2001
5
CA
Help me!.
My question is,
1. Open the CD-drive.[2 or more directories in it.]
2. Open each directory and search for the matching filename.
3. copy the matching file .
Please help me with this.
 
You might find it useful to take a look at the module File::Find. It recusively applies the operation of a function to every object in a directory tree.

Have that function return unless the filename given it matches what you're looking for, in which case it copies the file to the place you designate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top