VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Get drive information (Disk ID, FreeSpace, Label, etc)

Filipe Lage  (7 Submissions)   Files/File Controls/Input/Output   Beginner   Wed 3rd February 2021

These functions will provide you quick, fail-safe information about a specific disk letter you specify (ex: "C:\" )

GetDriveSerialID - Returns the serial number of a drive partition (if available)

GetDriveFreeSpace - Returns the free space of the specified drive (if available)

GetDriveSize - Returns the total drive space (if available)

GetDriveUsedSpace - Returns the used disk space of the specified drive (if available)

GetDriveLabel - Returns the volume label of the specified drive

Some functions are declared as variant instead of longs, avoiding the 2GB limit.

Rate Get drive information (Disk ID, FreeSpace, Label, etc) (2(2 Vote))
Get drive information (Disk ID, FreeSpace, Label, etc).bas

Get drive information (Disk ID, FreeSpace, Label, etc) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters