title: Java process.waitFor() does not return
body: <p>On Windows 7 64 bit, running 64 bit Java 1.7.0_17 , the <code>p.waitFor()</code> shown below never returns.</p>
  
  <pre><code>String move_command="cmd.exe /c xcopy /Y /E "+x86_release+" "+path+"\\";
  Process p;
  p = Runtime.getRuntime().exec(move_command);
  p.waitFor();
  </code></pre>
  
  <p>If I use Windows Explorer, it looks like all the files are copied (same number, same size, etc.)</p>
  
  <p>If I do the below, it <code>waitFor()</code> does return:</p>
  
  <pre><code>String move_command="cmd.exe /c move /Y "+x86_release+" "+path+"\\";
  Process p;
  p = Runtime.getRuntime().exec(move_command);
  p.waitFor();
  </code></pre>
  
  <p>What could be so different between an <code>xcopy</code> and a <code>move</code> that keeps <code>waitFor()</code> from returning, or am I on the wrong track entirely?</p>