ASP FileSystem 屬性
定義和用法
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: FAT