Batch script - Run exe program one after another

前端 未结 2 721
隐瞒了意图╮
隐瞒了意图╮ 2020-12-19 04:17

I have some EXE programs,Want to run using batch file one after another.

Actually one set contains 2 EXE programs with some parameters.

Example.

@ec         


        
相关标签:
2条回答
  • 2020-12-19 04:37

    To run the .exes sequentually you need to pass the /wait parameter to start

    e.g.

    @echo off  
    start /wait prog1.exe
    start /wait prog2.exe
    start /wait prog3.exe
    start /wait prog4.exe
    

    However that does not run start1 and 2 in parallel. For more complex use see answers to this question

    0 讨论(0)
  • 2020-12-19 04:46

    you don't even need the "start /wait". it will automatically call the program and wait if you just put "progx.exe"

    0 讨论(0)
提交回复
热议问题