PDA

View Full Version : Formattare un floppy con il VB


prodan
22-08-2003, 18:24
Esistono comandi in VB per formattare un floppy?
Grazie

cionci
22-08-2003, 19:58
Const SHFD_CAPACITY_DEFAULT = 0 ' default drive capacity
Const SHFD_CAPACITY_360 = 3 ' 360KB, applies to 5.25" drives only
Const SHFD_CAPACITY_720 = 5 ' 720KB, applies to 3.5" drives only
Const SHFD_FORMAT_QUICK = 0 ' quick format
Const SHFD_FORMAT_FULL = 1 ' full format
Const SHFD_FORMAT_SYSONLY = 2 ' copies system files only (Win95 Only!)
Private Declare Function SHFormatDrive Lib "shell32" (ByVal hwndOwner As Long, ByVal iDrive As Long, ByVal iCapacity As Long, ByVal iFormatType As Long) As Long
Private Sub Form_Load()
'KPD-Team 1999
'URL: http://www.allapi.net/
'E-Mail: [email protected]
'iDrive = The drive number to format. Drive A=0, B=1 (if present, otherwise C=1), and so on.
SHFormatDrive Me.hwnd, 0, SHFD_CAPACITY_DEFAULT, SHFD_FORMAT_QUICK
End Sub

cionci
22-08-2003, 20:00
In alto ci sono i vari parametri da inserire nelal chiamata...

prodan
23-08-2003, 04:29
Mi affido spesso alla vostra aperienza ma questa volta ho trovato la stessa roba che mi hai postato tu su un sito.
Cmq grazie.
Tu le sai tutte!!!!:)

cionci
23-08-2003, 12:20
Ho soltanto gaurdato su API-Guide...segui i link del codice e scaricalo... Ci sono gli esempi per molte Win32 API...ed un motore di ricerca...

leon84
23-08-2003, 13:11
Originariamente inviato da prodan
Mi affido spesso alla vostra aperienza ma questa volta ho trovato la stessa roba che mi hai postato tu su un sito.
Cmq grazie.
Tu le sai tutte!!!!:)

Le sa tutte ????? Il carissimo cionci ne sa sempre una pił del diavolo ... E' una persona squisita che ammiro moltissimo ...
;)

cionci
23-08-2003, 15:48
:friend: :sborone:

Dai dai non esageriamo...