call external exe multiple times one after another
===

I am calling an external exe using the following commands:

String bat_file = "cmd /c start out.bat";
Process p= Runtime.getRuntime().exec(bat_file);

The problem is that I need to call the specific exe multiple times but one after another(the next exe starts after the prvious exe is finished). They can not run simultaneously as they access the same files.

I tried to use a for but is not working.
Any ideas?

Thank you