Powershell Tip #142: How to concatenate two text files

By | November 28, 2018

Tip: You can contenate two text files in PowerShell.

Here there is one folder with 3 files.

Concatenate two files (File1 + File2) and save to the file File1andFile2.txt

You can concatenate three files having different prefix names and save to the file All.txt

Note: You can also use the -Encoding parameter


previous-buttonnext-button

2 thoughts on “Powershell Tip #142: How to concatenate two text files

  1. Pingback: Powershell Tip #141: How to swap two variables | Powershell Guru

  2. Pingback: Powershell Tip #143: Get the UUID of one local or remote computer | Powershell Guru

Leave a Reply

Your email address will not be published. Required fields are marked *