title: ProcessBuilder not working when i the passing argument to beyond compare
body: <p>When i am try to execute the Beyond compare exe.</p>
  
  <p>I not able to pass the argument for left and right side file</p>
  
  <pre><code>public static void exceutecmd() throws ServletException, IOException {
      boolean is64bit = false;
  
      if (System.getProperty("os.name").contains("Windows")) {
          is64bit = (System.getenv("ProgramFiles(x86)") != null);
      } else {
          is64bit = (System.getProperty("os.arch").indexOf("64") != -1);
      }
  
      String bin = "C:\\Optum Symmetry Suite\\Symmetry 9.1\\bin";
      String File1 = " C:\\Optum Symmetry Suite\\Symmetry 9.1\\bin\\1.TXT";
      String File2 = " C:\\Optum Symmetry Suite\\Symmetry 9.1\\bin\\2.TXT";
  
      System.out.println(bin);
      String exe = bin;
      //String configfile = defaultsvaluesSym.get("xml file path");
      //System.out.println(configfile);
      StringBuilder sbd = new StringBuilder();
      if (is64bit) {
          exe = File.separator + "/BC2.exe";
      } else {
          exe = File.separator + "/BC2.exe";
      }
  
      ****ProcessBuilder builder = new ProcessBuilder("cmd.exe", "/c", "cd \""
              + bin + "\" &amp;&amp; \"" + bin + exe +"\"",File1,File2);****
  
      builder.redirectErrorStream(true);
      Process p = null;
      try {
          p = builder.start();
      } catch (IOException e) {
  
          e.printStackTrace();
      }
      BufferedReader r = new BufferedReader(new InputStreamReader(
              p.getInputStream()));
      String line = null;
      while (true) {
          try {
              line = r.readLine();
              sbd.append(line);
          } catch (IOException e) {
  
              e.printStackTrace();
          }
          if (line == null) {
              break;  
          }
      }
      System.out.println(sbd.toString());
  
  }
  </code></pre>
  
  <p>I am able to execute the beyond compare exe but not able to pass the argument.</p>
  
  <p>Please help me to solve the issue</p>