Click or drag to resize

VolumeGetVolumePathName Method

Retrieves the volume mount point where the specified path is mounted.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public static string GetVolumePathName(
	string path
)

Parameters

path
Type: SystemString
The path to the volume, for example: "C:\Windows".

Return Value

Type: String

Returns the nearest volume root path for a given directory.

The volume path name, for example: "C:\Windows" returns: "C:\".

Exceptions
ExceptionCondition
ArgumentNullException
See Also