I don't know of any source code floating around to answer the question, but it shouldn't be too difficult to implement. In the Windows world, take a look at the FindFirstFileEx and FindNextFile API functions. The trick to writing these programs is remembering to look for the directories before you look for the actual search pattern you are supposed to find. As for copying the files, you have the CopyFile API.
Related Q&A from John Robbins
What is a JAD session? This term is referred to often in job postings and seems like some kind of brainstorm you carry out with a client to define IT...continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.