title: Can't run exe file from cmd in Java
body: <p>I try to run an exe file from cmd that I open by Java, but nothing happens.
  The cmd that oppened seems like:</p>
  
  <pre><code>C:\&gt;file.exe
  C:\&gt;
  </code></pre>
  
  <p>When I open manually cmd the exe file runs. the cmd seems the same in both cases! (manually and via Java).
  My code is:</p>
  
  <pre><code>File projDir = new File("C:/");
  String command = "cmd /c start file.exe";
  Process p = Runtime.getRuntime().exec(command, null, projDir);
  </code></pre>
  
  <p>Do you have an idea?</p>