Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to wright a script to run multiple OpenCv programs in Windows?

I like to run several OpenCV programs one by one in a DO Loop. After searching the web , think for this case need to use batch file. Is that right? The condition is that the next program must start only after the previous one finished. So, is there any way of control it?

Any idea how it should look like?

I have thinking of something like this , but not sure about the control

@ECHO OFF
START program1.exe

  :: not sure how to control the end of program1

   ECHO Timeout waiting for program1.exe to start
   GOTO :EOF

    :startnext
     program2.exe
    :: or START program2.exe

 ext