Click or drag to resize

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()

Return Value

Type: Char
A 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