VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Drive Type Finder

Super--s  (1 Submission)   Coding Standards   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This code will loop through all drives and determine what type it is(hard disk, floppy, CDROM, network, etc)

API Declarations
Declare Function GetDriveType Lib "kernel32" Alias "GetDriveTypeA" (ByVal nDrive As String) As Long
Public Const DRIVE_CDROM = 5
Public Const DRIVE_FIXED = 3
Public Const DRIVE_RAMDISK = 6
Public Const DRIVE_REMOTE = 4
Public Const DRIVE_REMOVABLE = 2

Rate Drive Type Finder (4(4 Vote))
Drive Type Finder.bas

Drive Type Finder Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters