I need to merge all files in a directory and its subdirectories into one. Based in solutions, I've this code below (I'd like to improve...):
Set output="evoc.lua"
Del %output%
(
    Type hoist.lua
    Echo.
    Echo.
    For /r "./src/" %%a in (*.lua) do @(
        type "%%a"
    )
    Echo.
    Echo.
    Type "exec.lua"
) >> %output%
It works. Now I need to distinguish files by line breaks (e.g., '\r\n' or \n); I've tried with Echo., but it puts dots (not at all). Any solutionsw
Set output="evoc.lua"
Del %output%
(
    Type hoist.lua
    Echo.
    Echo.
    For /r "./src/" %%a in (*.lua) do @(
        type "%%a"
        Echo.
    )
    Echo.
    Echo.
    Type "exec.lua"
) >> %output%
