running external program in java
<p>If I am running external program(batch file) from java then, What I need to do:  </p>

<pre><code>if (process.exitValue() == 0) {//means executed successfully ???
</code></pre>

<p>Can't the return value be something else and batch executed successfully.  </p>

<p>Is that the only way to check??</p>
