คุณสมบัติ FileSystem ASP
FileSystem คุณสมบัติกลับไดรฟ์ระบบไฟล์ที่ระบุจะใช้
คุณสมบัตินี้สามารถกลับค่าต่อไปนี้:
- ไขมัน - ไดรฟ์แบบถอดได้
- CDFS - ไดรฟ์ซีดีรอม
- 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
อ้างอิงวัตถุไดรฟ์ที่สมบูรณ์