How to abort robocopy on first error

Posted by Yurik on Server Fault See other posts from Server Fault or by Yurik
Published on 2009-10-07T21:59:10Z Indexed on 2010/06/15 16:53 UTC
Read the original article Hit count: 319

Filed under:
|
|

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 are not locked - rather the very first error should stop the whole copy process.

© Server Fault or respective owner

Related posts about Windows

Related posts about shell