A quicky: if you need to merge multiple text files into one new file in Windows, you can use the
copy command in cmd.exe, and here is how:
How to merge or combine multiple files #
Here is how to merge a text (
.txt) file in the Windows command-line (
In your Windows
cmd.exe command-line, use the following single command to merge all text files in a directory into one new file:
copy /b *.log newfile.log
copy /a *.txt newfile.txt
/b indicate ASCII text or BINARY files.
This is ideal for combining multiple log files into one file for LogParser and log forensics.
Please Support Saotn.org
Each post on Sysadmins of the North takes a significant amount of time to research, write, and edit. Therefore, your donation helps a lot! For example, a donation of $3 U.S. buys me a cup of coffee, and as you know: things jsut work better with coffee. A $10 U.S. donation buys me one month of web hosting (yes, hosting costs money). But seriously, thank you for any amount. Much appreciated!
Please donate to support this site if you found a post interesting or if it helped you solve a problem. Thanks! (Tip: no Paypal account required)