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

前端 未结 8 1838
说谎
说谎 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-22 23:51

    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.log
    

提交回复
热议问题