- Oct
- 364
- 17
Is it possible to append text files in different subfolders into a single file using copy without using a detailed looping approach?
Basically, I have this setup:
\2018\Sep
..\01
..\02
(etc ...)
About 20 of the subfolders contain a file with a standard name: PMT_2018-09-DD.txt where DD is the day.
I want to combine those into a single file.
I tried copy /s {pattern} F:\temp\target.txt but that copied the whole directory structure, etc., rather than appending.
Basically, I have this setup:
\2018\Sep
..\01
..\02
(etc ...)
About 20 of the subfolders contain a file with a standard name: PMT_2018-09-DD.txt where DD is the day.
I want to combine those into a single file.
I tried copy /s {pattern} F:\temp\target.txt but that copied the whole directory structure, etc., rather than appending.