title: Java Process Builder Command Error, Escaping double quotes
body: <p>Following statement works fine when typed in CMD</p>
  
  <pre><code>wmic /node:IP /user:Someuser /password:PWD Process Call Create "cmd /c echo 'Required_Info' %SystemDrive% %SystemRoot%"
  </code></pre>
  
  <p>I am trying to excecute the same through java process builder. Here is the code.</p>
  
  <pre><code>//some code
  String wmic_cmd = "Process Call Create";
  String wmic2 = " \"cmd /c echo 'Required_Info' %SystemDrive% %SystemRoot% \"";
  cmdTokens.add(wmic_cmd);
  cmdTokens.add(wmic2);
  /*debug and checked the value of cmdTokens array - it was
  [wmic, /node:10.0.0.0, /user:Someuser, /password:PWD, Process Call Create,  "cmd /c echo 'Required_Info' %SystemDrive% %SystemRoot% "] 
  */
  ProcessBuilder pb = new ProcessBuilder(cmdTokens.toArray(new String[]{}));
  Process proc = pb.start();
  </code></pre>
  
  <p>When i check the error stream of proc i get the following - </p>
  
  <pre><code>Process Call Create - Alias not found.
  </code></pre>
  
  <p>This indicates a syntax error for WMIC. So Something is going wrong while sending the command string array to process builder.</p>
  
  <p>Any ideas??</p>