如何使robocopy在命令行中保持静音(进度除外)? [英] How can I make robocopy silent in the command line except for progress?

查看:238
本文介绍了如何使robocopy在命令行中保持静音(进度除外)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用robocopy通过PowerShell脚本进行备份,它非常棒,除了我希望它仅在复制时显示进度百分比,而不能显示所有其他信息.

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 all of the other information.

其他信息使命令窗口混乱不堪,我将它清理干净并且很简单,以便可以轻松查看备份的总体进度.

The other information clutters the command window, which I'd clean and simple so that it's easy to see the overall progress of the backup.

这可能吗?

谢谢, 安德鲁

推荐答案

我通过使用以下选项来做到这一点:

I did it by using the following options:

/njh /njs /ndl /nc /ns

请注意,文件名仍然显示,但对我来说很好.

Note that the file name still displays, but that's fine for me.

有关robocopy的更多信息,请访问 http://technet.microsoft.com/zh-CN/library/cc733145%28WS.10%29.aspx

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

这篇关于如何使robocopy在命令行中保持静音(进度除外)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆