Batch files


A batch file is a kind of script file in DOS, Microsoft Windows.
It consists of a series of commands to be executed by the command-line interpreter, stored in a plain text file.

Merge text files that have the same name

Files are searched recursively, starting from the location directory of the executable batch file.

TextFilesMerge.bat
for /R %%f in (data.txt) do type "%%%f" >> data.txt
  • en/bat_files.txt
  • Last modified: 2018/07/18 08:43
  • by 2SRTVF