How to run multiple .BAT files within a .BAT file

前端 未结 17 1685
别跟我提以往
别跟我提以往 2020-11-22 13:59

I\'m trying to get my commit-build.bat to execute other .BAT files as part of our build process.

Content of commit-build.bat:



        
17条回答
  •  长发绾君心
    2020-11-22 14:10

    If you want to open many batch files at once you can use the call command. However, the call command closes the current bat file and goes to another. If you want to open many at once, you may want to try this:

    @echo off
    start cmd "call ex1.bat&ex2.bat&ex3.bat"
    

    And so on or repeat start cmd "call..." for however many files. This works for Windows 7, but I am not sure about other systems.

提交回复
热议问题