After considering using VBScript to merge files - see Do I need to use WMI in order to merge text files in VBScript? - I finally ended up using the DOS command COPY /B
with appropriate pattern (and matching file names/extensions).
Note: the /B
flag prevents weird behaviour with EOL (diff. CR/LF/CRLF) & EOF (had some SUB char appearing) characters.
But now I wonder: is there a way to also delete the merged files at the same time, provided that the whole merge process succeeded (important)?
Either using the same command - but that seems unlikely, given the COPY /?
help - or any another DOS command, in combination or in full replacement?