ASPファイルシステムプロパティ
ファイルシステムのプロパティは、指定したファイルシステムドライブが使用されて返されます。
このプロパティは次の値を返すことができます。
- FAT - リムーバブルドライブ
- CDFS - CD-ROMドライブ
- FAT、FAT32またはNTFS - Windows 2000またはWindows NT上のハードドライブ
- FATまたはFAT32 - Windows9x系のハードドライブ
文法
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
完全なドライブオブジェクトリファレンス