take time to execute .bat file through java?
<p>i have written a code to run .dat file using Java. but when is run that application then it take time to execute means it give half result and then after some time after gives complete result.</p>

<p>here is my code:</p>

<pre><code>String file = config.getOutPath() + "run_doxygen.bat";
                BufferedWriter out = new BufferedWriter(
                        new FileWriter(file));

                String cmd = "doxygen " + config.getOutPath() + "Doxyfile";
                runtime.exec(cmd);
                System.out.println("cmd_doxy:"+cmd);
                out.write(cmd);
                out.newLine();
                out.close();
</code></pre>

<p>the doxygen generate xml file. let suppose it generate 10 xml file . when i launch that *.bat file it generate 5 file and to generate rest 5 file it take time.
and  *.bat file contain : doxygen "path" </p>

<p>path is location of config file. it work fine when i run it with cmd or double click.</p>

<p>anybody have any idea
.
thanks</p>
