DriveInfoGetFreeDriveLetter Method (Boolean) |
Gets an available drive letter on the local system.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static char GetFreeDriveLetter(
bool getLastAvailable
)
Public Shared Function GetFreeDriveLetter (
getLastAvailable As Boolean
) As Char
public:
static wchar_t GetFreeDriveLetter(
bool getLastAvailable
)
static member GetFreeDriveLetter :
getLastAvailable : bool -> char
Parameters
- getLastAvailable
- Type: SystemBoolean
When get the last available drive letter. When gets the first available drive letter.
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