VBS教程:属性-FileSystem 属性


FileSystem 属性

返回指定的驱动器使用的文件系统的类型。

object.FileSystem

object 应为 Drive 对象的名称。

说明

可用的返回类型包括 FAT、NTFS 和 CDFS。

以下代码举例说明如何使用 FileSystem 属性:

 Function ShowFileSystemType(drvspec)    Dim fso,d, s    Set fso = CreateObject("Scripting.FileSystemObject")    Set d = fso. GetDrive(drvspec)    ShowFileSystemType = d.FileSystemEnd Function

« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3