Returns File System Type of a drive.
DriveGetFileSystem ( "path" )
path | Path of drive to receive information from. |
Success: | the File System Type of the drive as a string; see table below. |
Failure: | sets the @error flag to 1. |
Return Value | Interpretation |
$DT_UNDEFINED (1) (numeric) | Drive does NOT contain media (CD, Floppy, Zip) or media is unformatted (RAW). |
$DT_FAT ("FAT") | Typical file system for drives under ~500 MB such as Floppy, RAM disks, USB "pen" drives, etc. |
$DT_FAT32 ("FAT32") | Typical file system for Windows 9x/Me hard drives. |
$DT_EXFAT ("exFAT") | Typical file system for drives with files over 4 GB such as RAM disks, USB "pen" drives, etc. |
$DT_NTFS ("NTFS") | Typical file system for Windows hard drives. |
$DT_UNWFS ("NWFS") | Typical file system for Novell Netware file servers. |
$DT_CDFS ("CDFS") | Typically indicates a CD (or an ISO image mounted as a virtual CD drive). |
$DT_UDF ("UDF") | Typically indicates a DVD. |
The list of possible return values might be incomplete.
DriveGetDrive, DriveGetLabel, DriveGetSerial, DriveGetType, DriveSetLabel, DriveSpaceFree, DriveSpaceTotal, DriveStatus
#include <MsgBoxConstants.au3>
Local $sFileSystem = DriveGetFileSystem(@HomeDrive & "\") ; Find the file system type of the home drive, generally this is the C:\ drive.
MsgBox($MB_SYSTEMMODAL, "", "File System Type: " & $sFileSystem)