G
Guest
I am having trouble figuring out how to copy multiple files from multiple
directories into a single file.
I have a file structure like this:
C:
\20060101
\20060102
\20060103
...
Each directory has several files named like this: 1.txt, 2.txt, 3.txt, ...
What I want to do is copy each 3.txt file from each subdirectory into a
single file. Basically, I want something that works like this (this command
doesn't work):
copy c:\*\3.txt c:\appendedfile.txt
I've tried variations of both copy and xcopy with no luck. Hoping someone
here has an idea. I'd even take a solution that you can do from the Window
XP UI (using Search or something like that).
directories into a single file.
I have a file structure like this:
C:
\20060101
\20060102
\20060103
...
Each directory has several files named like this: 1.txt, 2.txt, 3.txt, ...
What I want to do is copy each 3.txt file from each subdirectory into a
single file. Basically, I want something that works like this (this command
doesn't work):
copy c:\*\3.txt c:\appendedfile.txt
I've tried variations of both copy and xcopy with no luck. Hoping someone
here has an idea. I'd even take a solution that you can do from the Window
XP UI (using Search or something like that).