title: Visual Studio 2010 Compile Error "xcopy exited with code -1073741515"
body: <p>I have a project that compiles in another machine but gives me an error like this in mine:</p>
  
  <p>Error   9   The command "xcopy /s /y "C:\MV-Code\Release_1.1.9\MV.ActionLibrary\MV.ActionLibrary.TransferUpload\bin\debug*.dll"  "C:\MV-Code\Release_1.1.9\MV.ActionLibrary\MV.ActionOutputLibrary\transfer_uploaded_image\"" exited with code -1073741515.</p>
  
  <p>When I run the xcopy command in CL, it runs perfectly. What am I missing here?</p>
  
  <p>Win 7 64 bit, VS 2010 SP1</p>
  
  <p><strong>Update 1:</strong>
  Path environment variable:</p>
  
  <pre><code>%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Media\Tools\Apps\ImageMagick;C:\Program Files\ImageMagick-6.7.4-Q16;C:\Program Files (x86)\ImageMagick-6.7.1-Q8;C:\Program Files (x86)\ImageMagick-6.7.1-Q16;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Tail4win;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Microsoft\Web Platform Installer\;c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\
  </code></pre>
  
  <p><strong>Update 2:</strong>
  We tried creating a batch file of all the xcopy post build events and called that batch file from VS2010 and it did not work either. The problem seems to be that no post build event can be done from my installation of VS2010.</p>