คุณสมบัติASP IsReady
❮ อ้างอิงออบเจกต์ของไดรฟ์ให้สมบูรณ์
คุณสมบัติ IsReady คืนค่า จริง หากไดรฟ์ที่ระบุพร้อมและเป็นเท็จ หากไม่เป็นเช่นนั้น
ไวยากรณ์
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
%>
Output:
The A drive is not ready!
❮ อ้างอิงออบเจกต์ของไดรฟ์ให้สมบูรณ์