ASP DRIVETYPEプロパティ
DRIVETYPEプロパティは、ドライブの種類を示す値を返します。
このプロパティは次の値を返すことができます。
- 0 =不明
- 1 =リムーバブル
- 2 =固定
- 3 =ネットワーク
- 4 = CD-ROM
- 5 = RAMディスク
文法
DriveObject.DriveType
例
<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("a:")
Response.Write("The drive type is: " & d.DriveType)
set d=nothing
set fs=nothing
%>
输出:
The drive type is: 1
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("a:")
Response.Write("The drive type is: " & d.DriveType)
set d=nothing
set fs=nothing
%>
输出:
The drive type is: 1
完全なドライブオブジェクトリファレンス