How can I use a batch file to write to a text file?

后端 未结 7 1744
不知归路
不知归路 2020-12-07 07:58

I need to make a script that can write one line of text to a text file in the same directory as the batch file.

7条回答
  •  执笔经年
    2020-12-07 08:58

    • You can use copy con to write a long text
    • Example:

      C:\COPY CON [drive:][path][File name]

      .... Content

      F6

      1 file(s) is copied

提交回复
热议问题