VolumeGetVolumePathName Method |
Retrieves the volume mount point where the specified path is mounted.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static string GetVolumePathName(
string path
)
Public Shared Function GetVolumePathName (
path As String
) As String
public:
static String^ GetVolumePathName(
String^ path
)
static member GetVolumePathName :
path : string -> string
Parameters
- path
- Type: SystemString
The path to the volume, for example: "C:\Windows".
Return Value
Type:
StringReturns the nearest volume root path for a given directory.
The volume path name, for example: "C:\Windows" returns: "C:\".
Exceptions See Also