Script package - run exe program one by one

I have several exe programs that need to be run using a batch file one by one.

In fact, one set contains 2 EXE programs with some parameters.

Example. @echo off start prog1.exe start prog2.exe /---wait untill prog1.exe and prog2.exe finish--/ start prog3.exe start prog4.exe 
+6
source share
2 answers

To run .exe sequences, you need to pass the / wait option to run

eg.

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

However, this does not start start1 and 2 in parallel. For more complex use see Answers to question

+5
source

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

0
source

Source: https://habr.com/ru/post/952186/


All Articles