Returns Volume Label of a drive, if it has one.
DriveGetLabel ( "path" )
|path||Path of drive to receive information from.|
|Success:||Returns the Volume Label of the drive as a string.|
|Failure:||Sets @error to 1.|
Local $sLabel = DriveGetLabel(@HomeDrive & "\") ; Find the volume label of the home drive, generally this is the C:\ drive.
MsgBox(4096, "Volume Label: ", $sLabel)