DEV Community

TechFixDocs
TechFixDocs

Posted on • Originally published at techfixdocs.my.id

How to Fix: Robocopy: show skipped files and files with an error while copying

Robocopy error logging and file skipping issues.

The Problem

The error 'Robocopy: show skipped files and files with an error while copying' occurs when you're using Robocopy to copy files from one location to another, preserving timestamps. This issue affects users who are trying to automate file transfers or backup processes, but don't have the necessary tools to troubleshoot the problem.This error can be frustrating because it doesn't provide clear information about which specific files are being skipped or have errors during the copy process. However, by following these steps, you'll be able to identify and resolve the issue.
⚠️ Common Causes

                The primary reason for this error is that Robocopy's logging options aren't sufficient to provide detailed information about skipped files and files with errors. By default, Robocopy only logs files that are skipped due to a file being newer than the destination or if the source file doesn't exist at the destination. However, it may not log files that have errors during the copy process.Another alternative reason is that the /LOG option isn't set correctly in your command. If you're using the /LOG option without specifying a valid log path, Robocopy won't create a log file to store error information.

            🛠️ Step-by-Step Verified Fixes

                Enable Detailed Logging and Error Handling

                    Step 1: To enable detailed logging, modify your Robocopy command to include the /V option. This will increase the verbosity of the log output, providing more information about files that are skipped or have errors during the copy process.Step 2: Add the /L option after the /LOG option to specify a valid log path for error messages. Make sure to replace '[log-path]' with an actual directory where you want to store the log file.Step 3: Update your command to include the /V and /L options: robocopy [source] [destination] /E /ZB /COPY:DAT /DCOPY:T /R:1 /W:5 /V /L:[log-path] /XD 'System Volume Information' 'Recycler'



                Use Third-Party Logging Tools

                    Step 1: Alternatively, you can use third-party logging tools like Robocopy's built-in support for Windows Event Viewer or external tools like Process Monitor to capture detailed log information about skipped files and files with errors.Step 2: Configure your command to write error messages to a file using the /V option. This will provide more details about files that have errors during the copy process, but may not be as comprehensive as detailed logging.


            🎯 Final Words
            To resolve the issue of 'Robocopy: show skipped files and files with an error while copying', you can try enabling detailed logging and error handling by modifying your command to include the /V and /L options. If this doesn't work, consider using third-party logging tools to capture more comprehensive log information.
Enter fullscreen mode Exit fullscreen mode

Full step-by-step guide with screenshots: Read the complete fix here

Found this helpful? Check out more verified tech fixes at TechFixDocs

Top comments (0)