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: NTFS
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
