Wednesday, November 25, 2015

Scripting - Merging multiple txt files in one

Here's a nice, quick and simple tip if you need to merge multiple text files (*.txt) in just one:

  1. First put all your txt files in a folder (for example D:\Temp)
  2. Now open command line and navigate to D:\Temp
  3. Next, type the following command:
    for %f in (*.txt) do type "%f"  >> output.txt
  4.'s done!

No comments:

Post a Comment