Function Reference


DriveGetLabel

Returns Volume Label of a drive, if it has one.

DriveGetLabel ( "path" )

Parameters

path Path of drive to receive information from.

Return Value

Success: Returns the Volume Label of the drive as a string.
Failure: Sets @error to 1.

Remarks

None.

Related

DriveGetDrive, DriveGetFileSystem, DriveGetSerial, DriveGetType, DriveSetLabel, DriveSpaceFree, DriveSpaceTotal, DriveStatus

Example


Local $sLabel = DriveGetLabel(@HomeDrive & "\") ; Find the volume label of the home drive, generally this is the C:\ drive.
MsgBox(4096, "Volume Label: ", $sLabel)