by Sam Huggill (7 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 2nd June 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Sets the volume label for a drive
API Declarations
Public Function SetLabel(RootName As String, NewLabel As String)
If RootName ="" Then
Exit Function
End If
Call SetVolumeLabel(RootName,NewLabel)
End Function
Call SetLabel("c:\windows","VB Square")
End Sub