I have a generic windows build batch (i.e. build.bat) that is running in parrallel with different parameters.
start build.bat device1
start build.bat device2
start build.bat device3
But in that batch there is an executable that crashes when it gets called in parrallel.
Is it possible, with windows build-in functions, to block this call when it is already running in another batch and continue when it has finished in that other batch?
Let's say the content of that batch is
start delay 5
When the batch gets called several times then the delay must not run when another delay is currently running.
This is similiar to semaphores.
So the goal is to have something like this
CheckAndWaitIfDelayIsRunning
start delay 5
Thanks in advance.