Page 1 of 1

Robocopy switches - screen ouput

Posted: 02 Feb 2018 07:37
by falcios
With Robocopy, I use these switches in my batch file:

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


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


Thanks in advance.

Re: Robocopy switches - screen ouput

Posted: 02 Feb 2018 10:37
by aGerman
I assume it's only a part of the parameters that you posted. Option /tee indicates that you want both writing to a log file and displaying the output at the same time. Have a look at the logging options
https://www.dostips.com/DosCommandIndex.php#ROBOCOPY
But if you want to fully log but only display a part of it then you're out of luck with robocopy only. You can pipe the output to findstr though. Either to filter the lines you want to display or (using /v) to exclude lines from the output.

Steffen