Automated Robocopy Backups With Email Notification What happens is you schedule a task to run the first Robocopy script. Based on the error level output one of two things happen: a success or failure. If there is success you run one batch file, if it fails you run another.