How to execute commands using java
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4916918/java-execute-a-command-with-a-space-in-the-pathname">Java execute a command with a space in the pathname</a>  </p>
</blockquote>



<p>I am having following command </p>

<p><code>i_view32.exe C:\*.bmp /import_pal=C:\default.pal /convert=D:\temp\*.bmp</code>
Which when i run through command prompt  works fine. 
I am trying to run the same command with the help of java.</p>

<pre><code> Process p = Runtime.getRuntime().exec(System.getenv("ProgramFiles")+"\\IrfanView\\i_view32.exe  c:\\*.bmp /import_pal= 1.pal /convert=d:\\temp\\*.bmp");
</code></pre>

<p>But  i am not able to get Output in <code>d:\\temp\\</code> Folder. Can any one suggest me where i am wrong.</p>

<p>Thanks in Advance..</p>

<p>Is there any other way to give <code>"/"</code> as i am using slash <code>/import_pal=</code></p>
