Log only changes in robocopy output

robocopy

I can't find a way to log only the changes in the output of a robocopy execution, i.e.: those considered new file, new directory, newer file, extra file, or extra directory.

The default output as I have it now consists of a list of all directories (touched or untouched) that were considered in the copying. I want to suppress the untouched.

Help doesn't seem to show a way to do this.

Best Answer

If you carefully look at the documentation or robocopy /?, you will find the /NDL switch.

Specifies that directory names are not to be logged.

With this you will have no output on individual names for directories (which can be considered a type of progress marker). But "filenames" will include the path.

So for example you would get the following output:

        *EXTRA Dir        -1    C:\Temp\test\
          *EXTRA File                  0        C:\Temp\test\test.txt
100%        Newer                     72        C:\Temp\test.txt
Related Question