VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Floppy Disk Format

Benjamin Cordingley  (1 Submission)   Files/File Controls/Input/Output   VB Script   Advanced   Wed 3rd February 2021

This code is a demonstation on how to format a floppy with out using format.com and with out calling the SHFormatDrive API. This code allows you to format a floppy without a popup window. Currently it is set for 1.44mb only, but all the code is there if you want to play around with 702kb and 2.88mb. From what i understand this code only works on NT based systems.

Side Effects
One side effect if you do not close the handle is your floppy will become unresponive till reboot. in other words...be sure to close the handle.

API Declarations
GetVolumeInformation
CreateFile
ReadFile
CloseHandle
SetErrorMode
SetFilePointer
WriteFile
FlushFileBuffers
DeviceIoControl
LockFile
UnlockFile

Rate Floppy Disk Format (3(3 Vote))

Download Floppy Disk Format

Floppy Disk Format Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters