从格式化C#中的驱动器 [英] Format a Drive from C#

查看:85
本文介绍了从格式化C#中的驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一支笔驱动器从C#应用程序中进行格式化。

I need to format a pen drive from within a C# application.

我周围的一派,我能找到的唯一的事情是的 http://msdn.microsoft.com/en-us/library/aa394515(VS。 85)的.aspx

I've googled around and the only thing I can find is http://msdn.microsoft.com/en-us/library/aa394515(VS.85).aspx

但我需要它在Win XP的工作,这样的解决方案不会为我做的。

But I need it to work on Win XP, so that solution won't do for me.

任何人都可以提出一个替代的方法是什么?

Can anyone suggest an alternate method?

推荐答案

您可以尝试简单地叉(不是Linux的叉:))一个新的进程并运行在C#程序中的Windows格式的命令。

You could try to simply fork (not the linux fork :) ) a new process and run the Windows format command from inside your C# program.

这篇关于从格式化C#中的驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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