Formater une clef USB

Moomoon07 Messages postés 223 Date d'inscription mercredi 31 mai 2006 Statut Membre Dernière intervention 5 mai 2014 - 14 nov. 2006 à 10:54
Moomoon07 Messages postés 223 Date d'inscription mercredi 31 mai 2006 Statut Membre Dernière intervention 5 mai 2014 - 14 nov. 2006 à 11:37
Salut !

Je cherche une méthode du style Formatter(string LettreDeLecteur).
J'ai beau chercher sur le msdn et sur le forum, je ne trouve rien.
Est ce que ça existe ?

MMN

2 réponses

sebmafate Messages postés 4936 Date d'inscription lundi 17 février 2003 Statut Membre Dernière intervention 14 février 2014 37
14 nov. 2006 à 11:00
un peu comme ca : http://pinvoke.net/default.aspx/shell32.SHFormatDrive

[DllImport("shell32.dll")]
static extern uint SHFormatDrive(IntPtr hwnd, uint drive, uint fmtID, uint options);

Sébastien FERRAND (
blog)
Consultant Indépendant
[Microsoft MVP Visual C#]
0
Moomoon07 Messages postés 223 Date d'inscription mercredi 31 mai 2006 Statut Membre Dernière intervention 5 mai 2014
14 nov. 2006 à 11:37
Merci !
J'essaye ça ...

MMN
0
Rejoignez-nous