title: Process Builder is not working on Windows
body: <p>I am using Process Builder to run ImageMagick commands on Windows. For some reason, with Process Builder the output image isn't being generated most times. When I tried the same command using <code>Runtime.getRuntime().exec</code>, output was generated. Any idea why that is?</p>
  
  <pre><code>String input="D:\\Koala.jpg";
  String output = "D:\\ProcessBuilderOutput\\KoalaPNG.png";
  commands.add("D:\\Program Files\\ImageMagick-6.8.6-Q16\\convert");
  commands.add("-alpha off");
  commands.add("-strip");
  commands.add(input);
  commands.add("-colorspace CMYK");
  commands.add(output);
  try{
      executeProcessCommand(commands);
      if(new File(output).exists() != true){ 
      System.out.println("output not generated");
      }
  }catch (Exception e) {
      e.printStackTrace();
  }
  public static void executeProcessCommand(List&lt;String&gt; commands) throws Exception {
      Process proc = null;
      try {
          System.out.println("-executeProcessCommand: Trying to execute :- "+commands);
          ProcessBuilder processBuilder = new ProcessBuilder(commands);
          proc = processBuilder.start();
          proc.waitFor();
          System.out.println("- executeProcessCommand: Executed the command ");
      } catch (Exception e) {
          System.out.println(" - executeProcessCommand:" + e.getMessage());
      } finally {
          try {
              if(proc != null)
                  proc.destroy();
          } catch (Exception e) {
              System.out.println("executeProcessCommand:"+ e.getMessage());
          }
      }
   }
  </code></pre>