batch file Copy files with certain extensions from multiple directories into one directory
I'm a newbie, so bear with me... I am trying to copy all .doc files that I have scattered throughout several subdirectories of one main directory into another directory using a batch file. I have managed to get a filelist.txt of all the files (there are hundreds) out of these directories that I want to copy using: "C:\Main directory\sub directory" dir /b /s *.doc > "C:\Main directory\sub directory\filelist.txt" What script would I use to xcopy those into one directory? Can I use some code that actually grabs those file names from filelist.txt and xcopies them? For reference, I looked at the