Add a new line to a text file in MS-DOS

后端 未结 6 1110
攒了一身酷
攒了一身酷 2020-12-24 05:11

I am making a .bat file, and I would like it to write ASCII art into a text file.

I was able to find the command to append a new line to the file when e

6条回答
  •  臣服心动
    2020-12-24 05:56

    Maybe this is what you want?

    echo foo > test.txt
    echo. >> test.txt
    echo bar >> test.txt
    

    results in the following within test.txt:

    foo

    bar

提交回复
热议问题