By default robocopy
logs only folders and nonpresent/modified (i.e. copied) files.
New Dir 2 C:\Temp\a\
100% New File 0 bar.txt
100% New File 0 foo.txt
You can suppress the logging of folders with the /ndl
switch (in this case the copied files will be listed with their full path).
100% New File 0 C:\Temp\a\bar.txt
100% New File 0 C:\Temp\a\foo.txt
Modify just foo.txt
and re-run robocopy a b /ndl
and you get
100% Newer 3 C:\Temp\a\foo.txt
Add /njh
and /njs
to remove header and summary from the output. Add /np
to remove progress indication (the percent value at the beginning of the output line). Add /xx
to remove indication of extra files (files that exist only in the destination, but not in the source folder):
C:\Temp>robocopy a b /njh /njs /ndl /np
*EXTRA File 0 C:\Temp\b\baz.txt
New File 0 C:\Temp\a\bar.txt
New File 0 C:\Temp\a\foo.txt
C:\Temp>echo "foo" >a\bar.txt
C:\Temp>robocopy a b /njh /njs /ndl /np /l
*EXTRA File 0 C:\Temp\b\baz.txt
Newer 3 C:\Temp\a\bar.txt
C:\Temp>robocopy a b /njh /njs /ndl /np /xx /l
Newer 8 C:\Temp\a\bar.txt