现在位置: 首页 > ASP 教程 > 正文

ASP FileSystem 属性


Drive 对象参考手册 完整的 Drive 对象参考手册

FileSystem 属性返回指定的驱动器所使用的文件系统。

此属性可返回下列值之一:

  • FAT - 可移动驱动器
  • CDFS - CD-ROM 驱动器
  • FAT、FAT32 或 NTFS - 在 Windows 2000 或 Windows NT 上的硬盘驱动器
  • FAT 或 FAT32 - 在 Windows 9x 上的硬盘驱动器

语法

DriveObject.FileSystem

实例

<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("c:")
Response.Write("The file system in use is: " & d.FileSystem)
set d=nothing
set fs=nothing
%>

输出:

The file system in use is: NTFS


Drive 对象参考手册 完整的 Drive 对象参考手册