G
Guest
I want to copy multiple text files into a single text file without having to
have all of the text files in one folder. The problem is that many of the
text files have the same name, so I want them to remain in separate
sub-folders. If the text files are all in the same folder, I know I can just
use the DOS command: copy *.txt file.txt.
I tried using xcopy *.txt C:\file.txt /s, hoping that all the text files in
the subfolders of my working directory would all get copied into file
C:\file.txt. But instead, it just overwrote file.txt a couple of thousand
times rather than combining all the files into one big text file.
Any advice?
have all of the text files in one folder. The problem is that many of the
text files have the same name, so I want them to remain in separate
sub-folders. If the text files are all in the same folder, I know I can just
use the DOS command: copy *.txt file.txt.
I tried using xcopy *.txt C:\file.txt /s, hoping that all the text files in
the subfolders of my working directory would all get copied into file
C:\file.txt. But instead, it just overwrote file.txt a couple of thousand
times rather than combining all the files into one big text file.
Any advice?