I want to run one batch file that runs other batch files. I looked at a similar question that was presented here: How to run multiple .BAT files in a .BAT file
I followed an example (in particular, the very last sentence), and it worked ... partially. He ran the batch files I needed. However, for the applications to function properly, some of these batch files must be opened, and then run their course for several seconds, and then run the next batch file, otherwise they will not be registered. Specifically, the first batch file starts the web application server (JBOSS 5.1), then the next batch file opens the pool manager, and then the other two launch distribution servers. When I run my batch file that calls others, they all start almost simultaneously, and they do not register each other. Can I do this with a batch file? Or do I need to enter the code of other batch files and make changes there? I want to avoid this at all costs.
Here is what I still have:
start cmd /k CALL D:\jboss-5.1.0.GA-jdk6\jboss-5.1.0.GA\bin\run.bat start cmd /k CALL batch1.bat start cmd /k CALL batch2.bat start cmd /k CALL batch3.bat
source share