Dear Hram Admin,
Thank you for reaching out and describing your Robocopy scenario in detail. We understand your goal is to ensure that all available files—including those after a failed file—are copied successfully, even if one file cannot be accessed during the process.
Current Behavior
You're using the following command:
cmd
robocopy source* destination /R:3 /W:5
In this setup:
Files 1–7 are copied successfully.
File 8 fails and Robocopy retries 3 times with a 5-second wait.
After 15 seconds, Robocopy exits and does not proceed to files 9 and 10.
This behavior occurs because Robocopy treats certain errors as fatal once retry attempts are exhausted, halting the operation.
Recommended Solution
To ensure Robocopy continues copying remaining files even if one fails, we recommend modifying your command as follows:
cmd
robocopy source destination /R:0 /W:0
Explanation:
/R:0 – Sets retry count to zero, so Robocopy skips failed files immediately
/W:0 – Sets wait time between retries to zero seconds
This configuration instructs Robocopy to skip any file it cannot copy and continue with the rest of the operation. Files that are deleted, locked, or inaccessible will be logged but won’t interrupt the overall process.
Optional Enhancements
You may also consider adding the following switches for better control and logging:
/LOG:robocopy.log – Saves output to a log file for review
/TEE – Displays output in console and writes to log simultaneously
/NFL /NDL – Suppresses file and directory listings for cleaner logs
I hope this helps. Just kindly tick Accept Answer that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
Best regards,
Domic Vo