VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get Volume Information of disk drive using GetVolumeInformation API

by Karthikeyan (187 Submissions)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 1st November 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Get Volume Information of disk drive using GetVolumeInformation API

Rate Get Volume Information of disk drive using GetVolumeInformation API



Dim drvserialno As Long
Dim mydrvlabel As String * 256
Dim myfilesys As String * 256
Dim i As Long
Dim j As Long
Dim x As Long
x = GetVolumeInformation("C:\", mydrvlabel, 256, drvserialno, i, j, myfilesys, 256)
MsgBox "Label of C Drive is  " & mydrvlabel
MsgBox "It's serial number = " & Hex(serialno)
MsgBox "FileSystem = " & myfilesys
End
End Sub

Download this snippet    Add to My Saved Code

Get Volume Information of disk drive using GetVolumeInformation API Comments

No comments have been posted about Get Volume Information of disk drive using GetVolumeInformation API. Why not be the first to post a comment about Get Volume Information of disk drive using GetVolumeInformation API.

Post your comment

Subject:
Message:
0/1000 characters