Combine text files into one.

lock Posted messages 30 Status Member -  
lock Posted messages 30 Status Member -
Hello,
I successfully copied several files into a single text file using DOS:

copy *.txt > récup.txt

Is there a way to have a "separator for each added file" in the final file?

I hope I was clear enough..
THANK YOU

4 answers

alhuno1 Posted messages 2079 Status Contributor 226
 
for %%FIC in "*.txt" do ( echo %%FIC ; echo %%FIC%% ) > fichier.txt
0