VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Sets the volume label for a drive

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

Rate Sets the volume label for a drive



Call SetLabel("c:\windows","VB Square")
End Sub

Download this snippet    Add to My Saved Code

Sets the volume label for a drive Comments

No comments have been posted about Sets the volume label for a drive. Why not be the first to post a comment about Sets the volume label for a drive.

Post your comment

Subject:
Message:
0/1000 characters