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

后端 未结 7 1762
不知归路
不知归路 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:43

    @echo off Title Writing using Batch Files color 0a

    echo Example Text > Filename.txt echo Additional Text >> Filename.txt

    @ECHO OFF
    Title Writing Using Batch Files
    color 0a
    
    echo Example Text > Filename.txt
    echo Additional Text >> Filename.txt
    

提交回复
热议问题