DriveGetFileSystem

首页  后退  前进

DriveGetFileSystem
down2

DriveGetFileSystem

返回驱动器的文件系统类型.

 

DriveGetFileSystem ( "path" )

参数

path

驱动器的路径.

返回值

成功:

返回驱动器的文件系统类型,见下表.

失败:

设置 @error 为 1.

 

 

 

返回值

描述

$DT_UNDEFINED (1) (数字)

驱动器没有介质(CD、软盘、压缩文件)或者媒体未格式化 (RAW).

$DT_FAT ("FAT")

容量低于 500 MB 的驱动器文件系统, 比如软盘, 内存盘, USB 驱动器等等.

$DT_FAT32 ("FAT32")

Windows 9x/Me 硬盘驱动器文件系统.

$DT_EXFAT ("exFAT")

容量大于 4 GB 的典型驱动器文件系统, 比如软盘, 内存盘, USB 驱动器等等

$DT_NTFS ("NTFS")

典型 Windows 硬盘驱动器的文件系统

$DT_UNWFS ("NWFS")

典型 Novell Netware 文件服务器的文件系统.

$DT_CDFS ("CDFS")

通常表示 CD (或虚拟光驱加载的 ISO 镜像).

$DT_UDF ("UDF")

通常表示 DVD

 

常量定义在 "AutoItConstants.au3".

备注

上表的返回值可能不完全.

 

函数示例

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

----------------------------------------

 

该函数可以通过命令 exect 调用

参见:

DriveGetDrive, DriveGetLabel, DriveGetSerial, DriveGetType, DriveSetLabel, DriveSpaceFree, DriveSpaceTotal, DriveStatus

例子
copy

exect=$var_stip=DriveGetFileSystem(@HomeDrive&'\')||_ViewValues('$var_stip') ;; 返回系统磁盘文件系统的类型

up2

tcimage © Аверин Андрей для Total Commander Image Averin-And@yandex.ru