Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

How to prevent robocopy /MIR from outputting the "EXTRA File" line in the log?

Writer Mia Lopez

Similar question has been asked in 2010 and 2012 but the answers don't cover this question.

When I use robocopy /MIR, if the destination has a file that's not in the source, it'll be deleted, and a line of "Extra File: xxxxx" will show in stdout. Sometimes there could be millions of such lines, which I don't need to see.

Flags like robocoyp /MIR /NFL /NDL /NS /NC /NP have no effect on Extra Files. Among those, /NC (no classes) will remove the words "Extra File`, but still output the file path and name.

I could do something like robocopy /MIR > NUL, but that'll remove all stdout. I do still want to see the summary.

1 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy