如何在VB.Net应用程序中格式化格式?! [英] How to format a prtition in VB.Net application?!!

查看:68
本文介绍了如何在VB.Net应用程序中格式化格式?!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿程序员,

我有一个小问题,我真的需要帮助.

如何在VB.Net应用程序中格式化像E:\这样的分区?
它可以通过使用Windows API函数来工作,但是我不知道它们!

并感谢您的帮助.

Hey programmers,

I''ve a little problem and I really need help.

How can I format a partition Like E:\ for example in my VB.Net application??

It may work by using windows API functions, but I don''t know them!!

and thanks for any help.

推荐答案

尝试一下

Try this

Shell("format [drive:] [/q] [/fs:file-system]", vbHide)
'drive: Specifies the drive to format.
'/q Performs a quick format.
'/fs:file-system    Specifies the file system to use (FAT, FAT32, or NTFS)


这篇关于如何在VB.Net应用程序中格式化格式?!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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