Click or drag to resize
VolumeSetVolumeLabel Method
Sets the label of a file system volume.

Namespace: Alphaleonis.Win32.Filesystem
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
public static void SetVolumeLabel(
	string volumePath,
	string volumeName


Type: SystemString

A path to a volume. For example: "C:\", "\\server\share", or "\\?\Volume{c0580d5e-2ad6-11dc-9924-806e6f6e6963}\"

If this parameter is , the function uses the current drive.

Type: SystemString

A name for the volume.

If this parameter is , the function deletes any existing label

from the specified volume and does not assign a new label.

See Also