What does “&&” do in this batch file?

后端 未结 2 1759
逝去的感伤
逝去的感伤 2020-11-27 11:38

I received a line of code from someone who answered one of my questions, but I am confused: what do the \"&&\" do in this batch file.



        
2条回答
  •  佛祖请我去吃肉
    2020-11-27 12:09

    && runs the second command on the line when the first command comes back successfully, or with an errorlevel of 0. The opposite of && is ||, which runs the second command when the first command is unsuccessful, or with an errorlevel of 1.

提交回复
热议问题