title: Windows copy command return codes?
body: <p>I would like to test for the success/failure of a copy in a batch file, but I can't find any documentation on what if any errorlevel codes are returned.  For example</p>
  
  <pre><code>copy x y
  if %errorlevel%. equ 1. (
      echo Copy x y failed due to ...
      exit /B
  ) else (
    if %errorlevel% equ 2. (
        echo Copy x y failed due to ...
        exit /B
     )
  ... etc ...
  )
  </code></pre>