Do Batch files support multiline variables

前端 未结 9 1810
南旧
南旧 2020-12-25 12:54

If so How?

Yes, batch files are lame, but I cannot use powershell, and I don\'t feel like writing a real app to do this simple task....

edit

9条回答
  •  囚心锁ツ
    2020-12-25 13:30

    Is that ok?

    @echo off
    set var=kur
    set var2=kur2
    echo var is = "%var%" and var2 is = %var2%
    

    edit
    is that what you mean ?

    @echo off
    set nl=^& echo.
    echo this%nl%is%nl%multiline%nl%string
    

提交回复
热议问题