How to write a block of text(multiple lines text) to a file in windows via batch file without using multiple echo call? : I have been trying to write multiple lines of text to a text file in windows but don't know how to do this. Also, search on the internet a lot about this but all solutions use echo command multiple times. Is there any way to do this without using echo command multiple times like "cat" in Linux.