I would like some help to understand and implement “wait for the process to complete” between the various processes in my application, which should be phased. My java file runs the batch file, which then runs the script. In conclusion, there are a number of commands that I need to execute (via the command line) sequentially. I use:
Runtime.getRuntime().exec("cmd /c start " + command)
to run my batch files and commands (not sure if this information is relevant). Currently, what happens is that the second step, which should happen in my application, is performed before the first step (launching the batch file that launches the script). I need to take the first step to complete the next series of commands. I really hope I make sense!
Amara source
share