如何以编程方式对硬盘进行碎片整理? [英] How do I programmatically defragment hard drive?
本文介绍了如何以编程方式对硬盘进行碎片整理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请帮助我!
如何以编程方式对硬盘空间进行碎片整理?
Please help me!
How do I programmatically defragment hard drive space?
saber rezaii magham写道(对Solution1发表评论):
saber rezaii magham wrote (in comment to Solution1):
谢谢......但是我想做一个类似碎片整理的程序.exe。
Thanks... But I want to make a program like defrag.exe.
推荐答案
你应该使用defrag api c#wrapper
http://blogs.msdn.com/b/jeffrey_wall/archive/2004/09/13/229137.aspx 一> [ ^ ]
You should use a defrag api c# wrapper
http://blogs.msdn.com/b/jeffrey_wall/archive/2004/09/13/229137.aspx[^]
调用defrag.exe
,但请记住:您需要拥有管理员权限;)
这是一个实现: PROCES ■启动并运行碎片整理命令行 [ ^ ]
Calldefrag.exe
, but remember: you need to have admin privileges ;)
Here is an implementation: Process Start and Running Defrag Command Line[^]
这篇关于如何以编程方式对硬盘进行碎片整理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文