VolumeSetVolumeLabel Method |
Sets the label of a file system volume.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void SetVolumeLabel(
string volumePath,
string volumeName
)
Public Shared Sub SetVolumeLabel (
volumePath As String,
volumeName As String
)
public:
static void SetVolumeLabel(
String^ volumePath,
String^ volumeName
)
static member SetVolumeLabel :
volumePath : string *
volumeName : string -> unit
Parameters
- volumePath
- 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.
- volumeName
- 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