i have 1000 .txt files with different file name in a folder(MAIN) and i need to filter some files which the names are given in filestocopy.txt. i need to copy those mentioned files and stored in a separate folder..any help..for example..see below..
Inside MAIN folder SAMPLE_20120807_1816.TXTSAMPLE_20120807_1916.TXTSAMPLE_20121207_1311.TXTSAMPLE_20121307_1816.TXTSAMPLE_20121322_1902.TXTSAMPLE_20121412_1351.TXT Inside filestocopy.txt SAMPLE_20120807_1816 SAMPLE_20121207_1311 SAMPLE_20121412_1351
Best Answer