如何在File.Copy中计算剩余时间和当前文件进度 [英] How Do I Calculate The Time Remaining And Current File Progress In File.Copy

查看:513
本文介绍了如何在File.Copy中计算剩余时间和当前文件进度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在file.copy()中计算剩余时间和当前文件进度;



how do i calculate the time remaining and current file progress in file.copy();

File.Copy(sourceFile, destFile, true);







请帮帮我




please help me

推荐答案

我刚刚查看了你之前关于同一主题的问题(更新c#console中的进度百分比 [ ^ ]),已经向您解释过了。请不要重新发布同样的问题,你只是浪费我们的时间和你自己的时间。
I just looked at your previous question on the same subject (update progress percentage in c# console[^]), where this was already explained to you. Please do not repost the same question, you are just wasting our time and your own.


你不能仅仅因为没有任何钩子进入文件而显示任何进展。复制。如果您需要报告文件副本的进度(但我怀疑),您需要自己的文件副本版本。



我之前也回答了你的问题:更新c#console中的进度百分比 [ ^ ]。



我不明白你怎么会不理解它。如果您需要澄清,可以提出一些后续问题。我很乐意回答。



-SA
You cannot show any progress just because there are no any hooks into File.Copy. If you need to report progress of file copy (but I doubt that), you need your own version of file copy.

I also answered your question before: update progress percentage in c# console[^].

I don't understand how would you fail to understand it. You could ask some follow-up questions if you needed clarification. I'll gladly answer.

—SA


这篇关于如何在File.Copy中计算剩余时间和当前文件进度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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