win32file.SetVolumeLabel

SetVolumeLabel(rootPathName, volumeName)

Sets a volume label for a disk drive.

Parameters

rootPathName : PyUnicode

address of name of root directory for volume

volumeName : PyUnicode

name for the volume