Powershell: How to read contents from all text files in a directory and add them to a single text file

posted in: Blog, Powershell | 1

Powershell Logo
Here’s a short Powershell tip that can be useful. If you have a directory with text files and want to add the content to a single text file, you can use this command:

One Response

  1. Stephen Orimoloye

    Thanks for your post ans is very helpful. I was able to copy all my text files into a single unit. Please just another bit that I will need your help on. I wanted to copy some part of individual files (from line 12 to the end) and copy all into a new file just like this one.

Leave a Reply