Couldn't run bat file through Java code
<p>Problem is that the same code below is working on other machine with Windows 7. I also use Windows 7, and bat file works well. But if I try to run this bat from code written before, cmd window just blink once and disappear. </p>

<pre><code>s =  path + "makeInfomap.bat";  

try {   
    p = run.exec(s); 
} catch (Exception e) {
    System.out.println(e);  
    e.printStackTrace(); 
}  

final int exitVal = p.waitFor();
</code></pre>
