1.

Solve : Insert a blank line in a text file using echo command??

Answer»

Hey, I'm trying to create a batch file to INSERT text into a text file using the echo command.

ECHO newtext >> textfile.txt

But the text is always added STRAIGHT ONTO the end of the last line, whereas I would LIKE to have this text on a new line.

Is there any way to do this?

Thanks in advance echo. Hello >>"C:\path\to\file.txt"
echo.  >>"C:\path\to\file.txt"
echo. How are you? >>"C:\path\to\file.txt"

The period 'echo.' is used to add a blank line.Thanks a lot, SORTED it straight away No problem.



Discussion

No Comment Found