none
Robocopy switches

    Question

  • With Robocopy I use these switches in my batch file

    /MIR /xf desktop.ini /e /np /tee

    Is there a switch to show screen output for only changed or newer files?  I prefer not to see all unchanged files scrolling through the screen.

    Thanks in advance.

    Friday, February 02, 2018 12:14 PM

All replies

  • You can read the syntax and options @ https://www.computerhope.com/robocopy.htm

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

    Friday, February 02, 2018 5:51 PM
  • Hi,

    Use the /xo switch

    /XO => exclude old files i.e. files on source that also exist at the

            destination but has older or same timestamp.

    In addition, you should have a look at the file system of your destination and source. Use the switch  /fft to sync the file system.


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, February 05, 2018 6:58 AM
  • Hi,

    If you have any problems, please feel free to contact me.


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, February 07, 2018 1:45 AM
  • Thanks vivian_zhou for your response

    I've added your suggestion of /xo and it still lists all the files.

    /MIR /xf desktop.ini /e /xo

    Example: I use Windiff to compare directories and I can specify to exclude identical files.

    That's what switch I'm looking for in Robocopy.  Just want to see files that are new, newer. If the file(s) hasn't changed I don't want to see the file listed on the screen output.

    Thanks in advance.

    Thursday, February 08, 2018 1:41 PM
  • Hi,

    How did export the report, using /log:<filename> switch?

    From my test, there is no direct switch to achieve the goal.

    However, I found a workaround:

    Use command /MIR /xf desktop.ini /e /xo /log:c:\test.txt

    Then Find "New" c:\test.txtWhich will list the newer files, modified files, new added files.


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, February 09, 2018 8:06 AM