DOS Merge .txt Files
nerdgirl Jul 29th, 2011 149 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- REM ## this is a nice little snippet that will take all of the files ending in .txt found inside the txts\ folder and merge them into 1 long text file. By Stacey Tipton Reiman www.akwebgenius.com/blog ##
- @echo off
- setlocal ENABLEDELAYEDEXPANSION
- FOR %%f in (txts\*.txt) do (
- set fileout=mergedtext.txt
- type "%%f" >> !fileout!
RAW Paste Data