home *** CD-ROM | disk | FTP | other *** search
- Attribute VB_Name = "Module1"
- ' LBLTOOLS.BAS
- ' Provides the function declarations and interface
- ' to the three functions for clearing, setting, and
- ' getting a volume label from a particular drive.
- ' *****
- ' Before writing a label delete the existing label with
- ' ClearLabel
-
-
- ' Pass the drive only
- Declare Function ClearLabel Lib "\DELTOOLS\LBLTOOLS" (ByVal drive As String) As Integer
-
- ' Include the drive letter with the label name
- ' For example: "A:\DISK 1"
- Declare Function SetLabel Lib "\DELTOOLS\LBLTOOLS" (ByVal labelName As String) As Integer
-
-
- ' Proper syntax is: volName = GetLabel( "A:\")
- Public Function GetLabel(drive As String) As String
-
- GetLabel = Dir(drive, &H8)
-
- End Function
-