As you can only add something to the file, you cannot prefix the text with a simple operation.
But you can:
- copy your header first into a new file (
copy header.template header.tmp) - (
type original.txt >> header.tmp) - (
del original.txt) - (
ren header.tmp original.txt)
EDIT:
for %%F in (*.txt) DO (
echo Working on %%F
copy header.template newFile.tmp
type "%%~F" >> newFile.tmp
del "%%~F"
copy newFile.tmp "%%~F"
)