I have 50 text files in one dir.
Is there a Windows command-line method to concatenate those files into a single file?
I am using Windows Vista.
I don't want to type the name of all files.
that's easy to be avoided, open a command prompt in this folder and type the following command:
Now you will have all text files in this folder ordered by date ascending merged into a single file called newfile.txt
why didn't you say that in your question? :)
here's a tutorial that may help you to achieve your "ultimate aim":
To add a newLine at the end of each concatenated file, use
Assuming you are talking about appending text files,
copy file1+file2+file3 targetfile
If you have a lot of files, you could loop by appending one file at a time.
Also, if its binary files, you can add in the '
The following .bat file will append all *.for files, except the one named XIT.for, to a blank file named MASTER.for
Run the following command in the command prompt:
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?