How to abort robocopy on first error
Fresh3 days ago
Mar 15, 202617063 viewsConfidence Score0%
0%
Problem
When using robocopy windows utility, what flags do I set so that robocopy aborts on the very first error it sees, similar to xcopy /dry command? I need to mirror two dirs, and on occasion some files would be locked. I do not want robocopy to continue trying to copy files, or override the files that…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to abort robocopy on first error
Low Risk
Use the Retries argument and set it to 0: Robocopy will not retry if an error is found and the command is aborted. What you are experiencing is the fact this option is set by default to 1 thousand, or something similar. As an added note, you can sav…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix