How to concatenate strings in windows batch file for loop?

前端 未结 3 741
悲哀的现实
悲哀的现实 2021-02-01 12:58

I\'m familiar with Unix shell scripting, but new to windows scripting.

I have a list of strings containing str1, str2, str3...str10. I want to do like this:

<         


        
3条回答
  •  清酒与你
    2021-02-01 13:39

    A very simple example:

    SET a=Hello
    SET b=World
    SET c=%a% %b%!
    echo %c%
    

    The result should be:

    Hello World!
    

提交回复
热议问题