目录搜索
文字
分享

ASP FileSystem 属性




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

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

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

语法

1

<div> DriveObject.FileSystem </div>

实例

1

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