|rawas: the easiest way i can think of is to convert the blank lines to a space in your input files, but i don't know if your outputfile is allowed to have a space instead of a null line. then you can use M2go's code exactly as it stands.|
this will convert the inputfiles:
@echo off & setlocal enabledelayedexpansion
for %%b in (?.txt) do (
for /f %%a in ('find /c /v "" ^< list') do set /a lc=%%a
move /y !outf! %%b
for /l %%i in (1 1 %lc%) do (
set /p xx=
if "!xx!"=="" set xx=
but note: your .txt files are overwritten and your outputfile will have one space on each blank line. These can be removed, and the .txt files don't have to be overwritten if you change the filename used by M2go's code (from .txt to .tmp) and take out the "move /y" statement from my code.
oops, sorry, some of your last msg didn't "soak in" to my brain, (about looking for trigger-strings to initiate the output stream).
i will try to re-work it some...