How can I make robocopy silent on the command line other than progress?

I use robocopy to create backups using the PowerShell script, and this is pretty awesome, except that I would like it to show the percentage of progress while it copies, and not all other information.

Other information clutters the command window, which I am clean and simple, so that it is easy to see the overall progress of the backup.

Is it possible?

Thanks Andrew

+66
backup robocopy
Oct 09 2018-10-10
source share
8 answers

I did this using the following options:

/njh /njs /ndl /nc /ns 

Please note that the file name is still displayed, but this is good for me.

For more information about robocopy, go to http://technet.microsoft.com/en-us/library/cc733145%28WS.10%29.aspx

+27
Oct 09 '10 at
source share

I added the following two options: /np /nfl

So, along with 5 parameters from AndyGeek's answer, which are /njh /njs /ndl /nc /ns , you get the following and silence:

ROBOCOPY [source] [target] /NFL /NDL /NJH /NJS /nc /ns /np

 /NFL : No File List - don't log file names. /NDL : No Directory List - don't log directory names. /NJH : No Job Header. /NJS : No Job Summary. /NP : No Progress - don't display percentage copied. /NS : No Size - don't log file sizes. /NC : No Class - don't log file classes. 
+114
Sep 20 2018-11-11T00:
source share

In PowerShell, I like to use:

 robocopy src dest | Out-Null 

This avoids the need to remember all the command line switches.

+8
Jul 30 '15 at 20:09
source share

If you don't want any output at all, this is the easiest way:

robocopy src dest > nul

If you still need some information and just want to remove parts of the output, use the parameters from R.Koene's answer.

+7
Jun 10 '14 at 17:06
source share

The workaround, if you want it to be completely silent, is to redirect the output to a file (and possibly delete it later).

 Robocopy src dest > output.log del output.log 
+2
Jul 12 '13 at 12:05
source share

robocopy also prints blank lines, even if it does nothing. I filter empty lines using the command:

 robocopy /NDL /NJH /NJS /NP /NS /NC %fromDir% %toDir% %filenames% | findstr /r /v "^$" 
+1
Sep 16 '16 at 6:51
source share

The> null icon does not work in quotation marks. It sees> null as the batch file name.

Robocopy did not work !!!

Here is the new batch file:

 robocopy /mir /B /r:1 /nfl /ndl /njh /njs /nc /ns /np c:\EnvBackup c:\offsite_backup\EnvBackup robocopy /mir /B /r:1 /nfl /ndl /njh /njs /nc /ns /np c:\shares c:\offsite_backup\shares robocopy /mir /B /r:1 /nfl /ndl /njh /njs /nc /ns /np c:\Quickbooks_Backup c:\offsite_backup\Quickbooks_Backup 
0
09 Oct '17 at 22:47
source share

There is no need to redirect the file and delete it later. Try:

 Robocopy src dest > null 
-one
Dec 26 '16 at 8:35
source share



All Articles