Robocopy will be able to overwrite files unless you tell it not to (using one of the
/X* switches). If a file is locked that could hang it but actually Robocopy will retry, with defaults that means it can take a long time retrying a file. You could change the retry options so that it only retries a couple of times and perhaps doesn't wait very long between retries.
:: Retry Options :
/R:n :: number of Retries on failed copies: default 1 million.
/W:n :: Wait time between retries: default is 30 seconds.
/REG :: Save /R:n and /W:n in the Registry as default settings.
/TBD :: wait for sharenames To Be Defined (retry error 67).
Also, it's possibly it's recursively copying data through junction points. I always use the
/XJ option in Robocopy operations to prevent this.
Questions as the devil's advocado:
- What command line are you using and can you give us the console output?
- Are you sure the files it's hanging on aren't just very big?
- Are you sure the files aren't locked?
- Are you running this interactive on the desktop? Could it be permissions-related?