Robocopy switches - screen ouput

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
falcios
Posts: 43
Joined: 02 Mar 2017 05:38

Robocopy switches - screen ouput

#1 Post by falcios » 02 Feb 2018 07:37

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.

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Robocopy switches - screen ouput

#2 Post by aGerman » 02 Feb 2018 10:37

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

Post Reply