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

前端 未结 8 1806
说谎
说谎 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:02

    I added the following 2 parameters: /np /nfl

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

    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.
    

提交回复
热议问题