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


$var = DriveGetLabel( "c:\" )
MsgBox(4096,"Volume Label: ",$var)