set /p z=enter text:
if not defined %z% goto :eof
>>accum.txt echo %z%
::------ end batch
You'll need to make arrangements to allow for blank/null lines, such as testing for %z%=" " for example.
echo. 2>>accum.txt|copy /b accum.txt+con
but CMD version, someone nees to know that ctrl-Z ends the input
message edited by nbrane