VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

cmdFormatDrive

Duncan Diep  (1 Submission)   Files/File Controls/Input/Output   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

Format Floppy Disk using API:Here is the code on How to Format Floppy Disk using API. Note -- This code can format your Hard Disk as well, so you should be careful!!!!

API Declarations
Private Declare Function SHFormatDrive Lib "shell32" _
(ByVal hwnd As Long, ByVal Drive As Long, ByVal fmtID As Long, _
ByVal options As Long) As Long
Private Declare Function GetDriveType Lib "kernel32" Alias _
"GetDriveTypeA" (ByVal nDrive As String) As Long

Rate cmdFormatDrive (3(3 Vote))
cmdFormatDrive.bas

cmdFormatDrive Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters