Not able to run a batch file from a java program
<p>I want to run a batch file from a Java program.</p>

<p>This works:</p>

<pre><code>runtime.getruntime().exec("cmd /c C:\\test.bat");  //Working
</code></pre>

<p>It is working very well, but if I give spaces in the path of the batch file, it is not working:</p>

<pre><code>runtime.getruntime().exec("cmd /c C:\\Program Files\\test.bat");  //Not Working
</code></pre>

<p>Can any one help me on this.</p>
