Returns the type of the drive which contains the specified path.
DriveType := DriveGetType(Path)
Type: String
Any path contained by the drive (might also work on UNC paths and mapped drives).
Type: String
This function returns the type of the drive which contains Path: Unknown, Removable, Fixed, Network, CDROM, or RAMDisk. If Path is invalid (e.g. because the drive does not exist), the return value is an empty string.
In general, Path can be any path. Since NTFS supports mounted volumes and directory junctions, different paths with the same drive letter can produce different results.
See example #1 on the Drive Functions page for a demonstration of this function.