Combine multiple text files and produce a new single text file using PowerShell? - Stack Overflow

PHOTO EMBED

Tue Dec 05 2023 22:08:08 GMT+0000 (Coordinated Universal Time)

Saved by @baamn

Get-ChildItem d:\scripts -include *.txt -rec | ForEach-Object {gc $_; ""} | out-file d:\scripts\test.txt
content_copyCOPY

https://stackoverflow.com/questions/40286458/combine-multiple-text-files-and-produce-a-new-single-text-file-using-powershell