After I use Robocopy to copy a folder, I sometimes get failures in the run log summary at the bottom (please see picture), however, I don’t see how to locate them in the actual list of files in the log. How can I locate the failures in the list?
31 Answer
You can search your log for the keyword ERROR:
With failed files, instead of the percentage (87%, 100% etc.) under a file entry (e.g. "New File") in the log you will find an error message with the error number e.g. ERROR 32 and a description e.g. The process cannot access the file because it is being used by another process.
For example this one:
Note that Folders can fail as well not only files.
Alternatively you can use the appropriate switches to "filter" the output of the log. The question on how to do it has already been answered several times, e.g. here: Robocopy, how to log only errors?
When it comes to individual logging requirements it's a good idea to get familiar with the logging options (source):
/L : List only.
/X : Report all extra files.
/V : Verbose output.
/TS : Include source file Time Stamps.
/FP : Include Full Pathname of files.
/BYTES : Print file sizes as bytes.
/NS : Don't log file sizes.
/NC : Don't log file classes.
/NFL : Don't log file names.
/NDL : Don't log folder names.
/NP : Don't show progress of operation.
/ETA : Show Estimated Time of Arrival of copied files.
/LOG:file : Output status to a LOG file. Overwrite existing file
/LOG+:file : Append existing output status to an existing LOG file.
/UNILOG:file : Output status to a Unicode LOG file. Overwrite existing file
/UNILOG+:file : Append existing output status to an existing Unicode LOG file.
/TEE : Output to console window and log file.
/NJH : Don't output Job Header.
/NJS : Don't output Job Summary. 4