What I want to do is start a .bat file that start other .cmd files. I have accomplished this with this command
start /D "path_to_folder" file1.cmd
start /D "path_to_folder" file2.cmd
start /D "path_to_folder" file3.cmd
The problem Im having is that I want the first bat that starts the other files, to close when all of the other cmd's have finished.
If I add the /WAIT command to every line, they will start one after another and not in parallel.
I've tried putting the /WAIT command on the last line, but sometimes that command finishes earlier than the others and the main bat file closes.