title: Running bat file with java processbuilder
body: <p>I am trying to execute .bat file using java process builder but it does not starts the process. Please tell me what i am doing wrong here. This code works fine with linux envoirnment when I replace file.bat with ./file.sh</p>
  
  <pre><code>final ArrayList&lt;String&gt; command = new ArrayList&lt;String&gt;();
  command.add(WORKING_DIR+File.separator+"file.bat");
  final ProcessBuilder builder = new ProcessBuilder(command);
  try {
      builder.redirectErrorStream(true);
      builder.start();
      } catch (IOException e) {
        logger.error("Could not start process." ,e);
  } 
  </code></pre>