Sets the Volume Label of a drive.
DriveSetLabel ( "path", "label" )
path | Path of drive to change. |
label | New volume label for the drive. (11 characters is usually max length) |
Success: | 1. |
Failure: | 0. |
Most hard drives have a maximum label length of 11 characters, and DriveSetLabel() will fail if max length is exceeded. Also, FAT32 partition labels tend to revert to all capital letters.
DriveGetDrive, DriveGetFileSystem, DriveGetLabel, DriveGetSerial, DriveGetType, DriveSpaceFree, DriveSpaceTotal, DriveStatus
DriveSetLabel(@HomeDrive & "\", "New_Label") ; Change the label of the home drive, generally this is the C:\ drive.