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
完整的Drive對象參考手冊