I am using a batch file to open several new windows. When they complete their processes, I have the / c set that they complete. However, I would like my main batch process to wait for one window to complete before moving on, instead of doing it all at once.
For example, if my main batch file has:
@ECHO OFF
start "Win1" cmd.exe / c scomp -out ........ \ tasks \ JARs \ MessageLog.jar MessageLog.xsd -compiler "C: \ Program Files \ Java \ jdk1.5.0_18 \ bin \ javac .exe "
start "Win2" cmd.exe / c scompoutout ........ \ tasks \ JARs \ OwnshipData.jar OwnshipData.xsd -compiler "C: \ Program Files \ Java \ jdk1.5.0_18 \ bin \ javac.Exe "
I would like Win1 to complete execution before the file moves to Win2. They are currently running at the same time.
Monster
source
share