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

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

    @echo off
    
    echo Type your text here.
    
    :top
    
    set /p boompanes=
    
    pause
    
    echo %boompanes%> practice.txt
    

    hope this helps. you should change the string names(IDK what its called) and the file name

提交回复
热议问题