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

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

    robocopy also tends to print empty lines even if it does not do anything. I'm filtering empty lines away using command like this:

    robocopy /NDL /NJH /NJS /NP /NS /NC %fromDir% %toDir% %filenames% | findstr /r /v "^$"
    

提交回复
热议问题