C#中需要磁盘碎片整理代码 [英] Disk Defragmentation Code need in C#
本文介绍了C#中需要磁盘碎片整理代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
请分享给我相同的链接或代码.
我已经通过此链接了.
http://blogs.msdn.com/b/jeffrey_wall/archive/2004/09/13/229137.aspx [ ^ ]
但我不知道要为以下方法发送什么参数.
Hi
Please share me a link or code for the same.
I already have gone through this link.
http://blogs.msdn.com/b/jeffrey_wall/archive/2004/09/13/229137.aspx[^]
but I dont know what parameters to send for the below method.
static public void MoveFile(string deviceName, string path, Int64 VCN, Int64 LCN, Int32 count)
请帮助
谢谢
Please Help
Thanks
推荐答案
在您链接到的帖子中有一个解释:
In the post you linked to there''s an explanation :
/// <param name="deviceName">device to move on"c:"</param>
/// <param name="path">file to muck with "c:\windows\explorer.exe"</param>
/// <param name="VCN">cluster number in file to move</param>
/// <param name="LCN">cluster on disk to move to</param>
/// <param name="count">for how many clusters</param>
我认为您需要先研究他正在使用的API.
但是要当心:证书是它可以在我的机器上工作!".
干杯
I think you need to study the API he''s using before you try this.
Beware though : the certificate is "It works on my machine!".
Cheers
这篇关于C#中需要磁盘碎片整理代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文