VolumeGetDriveNameForNtDeviceName Method |
Gets the drive letter from an MS-DOS device name. For example: "\Device\HarddiskVolume2" returns "C:\".
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static string GetDriveNameForNtDeviceName(
string deviceName
)
Public Shared Function GetDriveNameForNtDeviceName (
deviceName As String
) As String
public:
static String^ GetDriveNameForNtDeviceName(
String^ deviceName
)
static member GetDriveNameForNtDeviceName :
deviceName : string -> string
Parameters
- deviceName
- Type: SystemString
An MS-DOS device name.
Return Value
Type:
StringThe drive letter from an MS-DOS device name.
See Also