How can I move the first 2 pdf files in each folder in a directory (and each subdirectory) to a single folder using a batch file? <p>I have a directory that contains several hundred folders, many of which contain other folders, inside of which are anywhere from 6 or 7 to several hundred files of assorted types. I need a batch file that can copy the first 2 PDF files in each folder, including sub-folders, and add them to one, separate folder.</p> <p>I don't think it should make a difference, but not every folder contains 2 or more PDF files. Many contain only other folders, in which case those folders should be searched. Others contain just 1 PDF, in which case it should be added to the separate folder with the others.</p> <p>I have never written/used a batch file and any guidance, explanations or examples would be greatly appreciated.</p>