DriveInfoGetFreeDriveLetter Method |
[AlphaFS] Gets the first available drive letter on the local system.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static char GetFreeDriveLetter()
Public Shared Function GetFreeDriveLetter As Char
public:
static wchar_t GetFreeDriveLetter()
static member GetFreeDriveLetter : unit -> char
Return Value
Type:
CharA drive letter as
Char. When no drive letters are available, an exception is thrown.
Remarks The letters "A" and "B" are reserved for floppy drives and will never be returned by this function.
See Also