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

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

    Join 1,676 other followers

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 [target] /njh /njs /ndl /nc /ns /np /nfl

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

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.

–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 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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 
%d bloggers like this: