.. highlightlang:: us .. index:: FS_GetDriveType .. _fs_getdrivetype: FS_GetDriveType =============== .. us.tag FS_GetDriveType ENGLISH New5700 FILE_MISC :ref:`FS_GetDriveType`. .. function:: nFree = FS_GetDriveType(ssFileSystem) .. us.return **Return Value** *nType* is the drive type: .. list-table:: :header-rows: 1 * - nType - Description * - DRIVE_UNKNOWN 0 - The drive type cannot be determined. * - DRIVE_NO_ROOT_DIR 1 - The root path is invalid; for example, there is no volume mounted at the specified path. * - DRIVE_REMOVABLE 2 - The drive has removable media; for example, a floppy drive, thumb drive, or flash card reader. * - DRIVE_FIXED 3 - The drive has fixed media; for example, a hard disk drive or flash drive. * - DRIVE_REMOTE 4 - The drive is a remote (network) drive. * - DRIVE_CDROM 5 - The drive is a CD-ROM drive. * - DRIVE_RAMDISK 6 - The drive is a RAM disk. .. us.params **Parameters** .. uparam:: ssFileSystem *ssFileSystem* is the drive name. .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - R2015.0 - New. .. us.example **Example** :: * FS_GetDriveType("z:\\") 4 .. seealso:: :ref:`overview-files`, :ref:`FS_GetTotalSpace`, :ref:`FS_GetFileSystemList` :sub:`id-2028337`