How can I make robocopy silent in the command line except for progress?

前端 未结 8 1837
说谎
说谎 2020-12-22 23:30

I\'m using robocopy to do backups with a PowerShell script, and it\'s pretty awesome, except that I\'d like it to only show the progress percentage while it copies and not a

8条回答
  •  没有蜡笔的小新
    2020-12-23 00:01

    The > null does not work in the quotes. It sees the > null as the batch filename.

    The robocopy no output worked!!!

    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
    

提交回复
热议问题