ASP DriveType ÊôÐÔ
¶¨ÒåºÍÓ÷¨
DriveType ÊôÐÔ·µ»ØÒ»¸öָʾÇý¶¯Æ÷ÀàÐ͵ÄÖµ¡£
´ËÊôÐÔ¿É·µ»ØÏÂÁÐÖµÖ®Ò»£º
- 0 = unknown
- 1 = removable
- 2 = fixed
- 3 = network
- 4 = CD-ROM
- 5 = RAM disk
Óï·¨£º
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