|
Previous Top Next |
Prototype: | (String pDrive),String |
pDrive | Drive letter to get the drive type string for. Normally passed as C:\ |
Returns | Return string with the drive type |
This method takes the drive letter string and returns a string that van be one of the following values:
Value |
Meaning |
Unknown drive type |
The drive type cannot be determined. |
No root directory |
The root path is invalid, for example, no volume is mounted at the path. |
Removable |
The drive is a type that has removable media, for example, a floppy drive or removable hard disk. |
Fixed |
The drive is a type that cannot be removed, for example, a fixed hard drive. |
Remote |
The drive is a remote (network) drive. |
CD-ROM |
The drive is a CD-ROM drive. |
RAMDISK |
The drive is a RAM disk. |
Example:
ITF ITFileClass
I Long
ITF.EnumLocalDrives()
Loop I = 1 To Records(ITF.LocalDrives)
Get(ITF.LocalDrives,I)
ITF.ODS('Drive: ' & Clip(ITF.LocalDrives.RootPath) &|
', Type = ' & ITF.LocalDrives.DriveType &|
': ' & ITF.GetDriveTypeString(ITF.LocalDrives.RootPath))
End
See also: