I am attempting to create a Windows Batch File that creates a .txt with mulitple lines. I\'ve tried several solutions to insert a line break in the string but no avail. Ther
Just repeat the echo
and >>
for lines after the first. >>
means that it should append to a file instead of creating a new file (or overwriting an existing file):
echo Here is my first line > myNewTextFile.txt
echo Here is my second line >> myNewTextFile.txt
echo Here is my third line >> myNewTextFile.txt
pause