I've created a list of file-paths to particular text files using
dir /b /s "xinfo.txt" > index.txt
All of these text files are CSV's and I would like to merge/append all of them together to create a new text file called "sourcing_directory".
I've tried the method mentioned in http://www.sidesofmarch.com/index.php/archive/2004/03/30/using-the-for-command-to-copy-files-listed-in-a-text-file/ which uses:
for /f "delims=" %%i in (filelist.txt) do echo D|xcopy "\\server\share\folder\%%i" "c:\temp\%%i" /i /z /y
To copy all the text files into one folder so I can just use Copy to merge all of them. This however doesn't seem to work either because of the way the index.txt has been structured or the fact that all the files have the same name.