ASP IsReady ÊôÐÔ

¶¨ÒåºÍÓ÷¨

IsReady ÊôÐÔ·µ»ØÖ¸¶¨Çý¶¯Æ÷ÊÇ·ñ¾ÍÐ÷¡£¾ÍÐ÷Ϊ true£¬Î´¾ÍÐ÷Ϊ false¡£

×¢ÊÍ£º¶ÔÓÚ¿ÉÒÆ¶¯Ã½ÌåÇý¶¯Æ÷ºÍ CD-ROM Çý¶¯Æ÷£¬½öµ±²åÈëÏàÓ¦µÄýÌå²¢×¼±¸½ÓÊÜ·ÃÎÊʱ£¬IsReady ·µ»Ø True¡£

Óï·¨£º

DriveObject.IsReady

ʵÀý

<%
dim fs,d,n
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("a:")
n = "The " & d.DriveLetter
if d.IsReady=true then
  n=n & " drive is ready!"
else
  n=n & " drive is not ready!"
end if
Response.Write(n)
set d=nothing
set fs=nothing
%>

Êä³ö£º

The A drive is not ready!
VUE