Be aware that robocopy does not return a zero when it completes successfully, like most Windows commands. It returns a code giving you information about what it just did. This can be either a blessing or curse, depending on where you use it. If this causes you issues, consider using Powershell commands for your copying.