The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Email Subscription

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 716 other subscribers

Making RoboCopy silent (via: backup – How can I make robocopy silent in the command line except for progress? – Stack Overflow)

Posted by jpluimers on 2012/09/14

A while ago, I got a question from a colleague on how to silence RoboCopy.

The RoboCopy /? help is a bit awkward to read, so there is this nice SO answer by Ruben Koene:

So together with previous answer you get the following and it’s silent:

ROBOCOPY [source][/source] [target] /njh /njs /ndl /nc /ns /np /nfl

And there is the FIND way where I marked the relevant options with an asterisk (*):

[sourcecode language=”text”]
C:\Users\jeroenp>robocopy /? | find /i "No"
/S :: copy Subdirectories, but not empty ones.
/NOCOPY :: COPY NO file info (useful with /PURGE).
/PURGE :: delete dest files/dirs that no longer exist in source.
/PF :: check run hours on a Per File (not per pass) basis.
n must be at least 1 and not greater than 128.
/XJ :: eXclude Junction points. (normally included by default).
/X :: report all eXtra files, not just those selected.
* /NS :: No Size – don’t log file sizes.
* /NC :: No Class – don’t log file classes.
* /NFL :: No File List – don’t log file names.
* /NDL :: No Directory List – don’t log directory names.
* /NP :: No Progress – don’t display percentage copied.
* /NJH :: No Job Header.
* /NJS :: No Job Summary.
/NOSD :: NO Source Directory is specified.
/NODD :: NO Destination Directory is specified.[/sourcecode]

–jeroen

via: backup – How can I make robocopy silent in the command line except for progress? – Stack Overflow.

4 Responses to “Making RoboCopy silent (via: backup – How can I make robocopy silent in the command line except for progress? – Stack Overflow)”

  1. george renee's avatar

    george renee said

    A workaround, if you want it to be absolutely silent, is to redirect the output to a file (and optionally delete it later).

    Robocopy src dest > output.log
    del output…
    currently i use GS Richcopy 360 Enterprise for command line..robocopy is a good tool but it crashes several times.

  2. Interestingly, robocopy (at least on some windows versions) has a bug where /NP flag does not work. You still get 100% output a million times.

Leave a Comment

 

Discover more from The Wiert Corner - irregular stream of stuff

Subscribe now to keep reading and get access to the full archive.

Continue reading