分区外部硬盘驱动器并分配驱动器号 [英] Partitioning the externel Hard drive and assign the drive letter

查看:205
本文介绍了分区外部硬盘驱动器并分配驱动器号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个外部硬盘驱动器,我想用C ++或C#创建一个对硬盘驱动器进行分区并分配驱动器号的工具.

我确实尝试创建批处理文件并在我的C#代码上调用批处理文件,但这似乎不起作用.

有什么办法可以做到这一点?

从该站点中学到很多东西.

谢谢你们. :(

Hello All,

I am having a externel hard drive, I want to create a tool in C++ or C# which partition the hard drve and assign a driver letter.

I do tried creating batch file and call batch file on my C# code but that seems not working.

Is there any way to make this possible?

learn a lot from this site.

Thank you all. :(

推荐答案

只需运行cmd.exe(在C#中,使用Process对象),并将格式C:"作为参数.
Just run cmd.exe (in C#, use the Process object) with "format C:" as the parameters.


只需从此处开始 [ ^ ]


这篇关于分区外部硬盘驱动器并分配驱动器号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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