MoveFileWithProgress(复制过程) [英] MoveFileWithProgress (Copy Process)
本文介绍了MoveFileWithProgress(复制过程)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以告诉我这个过程是如何运作的吗?我的目标是希望获得图像的某些细节并将其放在文本文件中。谁能教我怎么样?
当这个复制过程发生时,细节
FROM:
TO:
MoveFileWithProgress中的
将被复制并粘贴到文本文件中: )
Can someone tell me how this process works? My goal is I want to get the certain details on the image and put it on a text file. can someone teach me how?
When this Copying process happens, the details
of
FROM:
TO:
in the MoveFileWithProgress will be copied and will be pasted inside a text file :)
推荐答案
请参阅我对该问题的评论,这一点不太清楚。如果你想实现这样的行为来代替System.IO.File.Move
(http://msdn.microsoft.com/en-us/library/system.io.file.move(v = vs.110).aspx [ ^ ])。这种方法的好处是:你不需要使用P / Invoke,这将保持代码的平台兼容性。
使用P / Invoke,你可以使用本机Windows APIMoveFileWithProgress
。一切都已经完成了: http://www.pinvoke.net/default.aspx/kernel32.movefilewithprogress [ ^ ]。
您选择。
-SA
Please see my comment to the question, which is not quite clear. I gave you one recipe if you want to implement such behavior in replacement ofSystem.IO.File.Move
(http://msdn.microsoft.com/en-us/library/system.io.file.move(v=vs.110).aspx[^]). The benefit of such approach: you won't need to use P/Invoke, which will preserve platform compatibility of your code.
With P/Invoke, you can use native windows APIMoveFileWithProgress
. Everything is already done for you: http://www.pinvoke.net/default.aspx/kernel32.movefilewithprogress[^].
You choose.
—SA
这篇关于MoveFileWithProgress(复制过程)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文