IT:AD:RoboCopy

Summary

  • Stands for Robust Copy
  • first included in Windows Vista
    • (ie, not available on Windows Server 2003 and XP).
  • HELP: ROBOCOPY /?

Copy, Excluding Files

Equivalent of

C:\WINDOWS\system32\xcopy.exe "$(TargetDir)*.*" "$(SolutionDir)_CompiledAssemblies\$(ConfigurationName)\" /E /Y /R

is

C:\WINDOWS\system32\ROBOCOPY.exe "$(TargetDir)" "$(SolutionDir)_CompiledAssemblies\$(ConfigurationName)" /E /CREATE /XF *.tmp /V

But it has trouble being used in Visual Studio Build events due to it returning non-1 if success…which VS interprets as failure.

Reference