简体   繁体   English

在 Powershell 中为任务创建进度条

[英]Create Progress Bar for task in Powershell

I want to export Registry to to reg file in Powershell so that, I use command:我想将注册表导出到 Powershell 中的 reg 文件,以便我使用命令:

REGEDIT /E C:\backup.reg

But when it running, it doesn't show any status for me to know how much percent it complete.但是当它运行时,它没有显示任何状态让我知道它完成了多少百分比。

So which way can I use to show percentage of complete of this task in screen to monitor?那么我可以使用哪种方式在屏幕中显示此任务的完成百分比以进行监控?

It's not possible.这是不可能的。 Regedit is a compiled application and it returns what the developer chose to return (see regedit /? for options). Regedit 是一个已编译的应用程序,它返回开发人员选择返回的内容(有关选项,请参阅regedit /? )。

You would have to recreate it yourself as a Powershell function or find someone who's done it already.您必须自己将其重新创建为 Powershell 函数,或者找到已经完成此操作的人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM