ASP IsReady 属性
❮ 磁盘驱动器对象完整参考
IsReady 属性如果指定的驱动器已准备好则返回 true,否则返回 false。
语法
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!
❮ 磁盘驱动器对象完整参考