How to run .exe application with paramenters from java?
<p>I want to run .exe application with two parameters.Its VB .exe application its need two parameters to execute ? I tried with create .cmd file to execute .exe application, its working good.</p>

<p>Please see the which code running .cmd file.
    start <strong><em>xx.exe ./aa.txt,2012</em></strong></p>

<p>Same procedure following in java, but giving error...
Please find the below small java program.</p>

<pre><code>public class Invoke
{
 public static void main(String as[])
 Runtime r=Runtime.getRuntime();
 Processp=null;
 try

 {
  String s="...complie.exe";
  String d="...de.txt";
  String l="...foldername";
  p=r.exec(s,d,l);
  }
  catch(Exception e){
   }
</code></pre>

<p>Please advise...</p>
