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:
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.
If you want to step in to help me cover the costs for running this website, that would be awesome. Just use this link to donate a cup of coffee ($5 USD for example). And please share the love and help others make use of this website. Thank you very much!
My name is Jan. I am not a hacker, coder, developer, programmer or guru. I am merely a system administrator, doing my daily thing at Vevida in the Netherlands. With over 15 years of experience, my specialties include Windows Server, IIS, Linux (CentOS, Debian), security, PHP, websites & optimization.
Grep for forensic log parsing and analysis on Windows Server IIS
“Forensic Log Parsing with Microsoft’s LogParser”
Windows Server 2019 – now available in preview
Windows Server 2016 on Hyper-V stuck at stopping
List all SPNs used in your Active Directory
Important note about Windows Update KB4056892