title: Using robocopy with Visual Studio 2010 Post-build and Pre-build events
body: <p>Robocopy outputs 1 upon success, unlike most programs that exit with 0 on success. Visual Studio (and MSBUILD) interprets exit code of 1 as an error. </p>
  
  <p>How can Robocopy be used in Visual Studio post- and pre-build events such that its failure and success are correctly identified by the build environment?</p>
  
  <p>Note: this is more or less a repost of <a href="http://anotherlab.rajapet.net/2010/05/using-robocopy-with-visual-studio-2008.html" rel="noreferrer">this post</a>.</p>