ASP propiedad IsReady
IsReady propiedad devuelve la unidad especificada está listo. Listo es cierto, no está dispuesto a falso.
Nota: Para las unidades extraíbles medios de comunicación, y la unidad de CD-ROM, sólo cuando la inserción del correspondiente acceso a los medios y preparados para aceptar cuando, IsReady devuelve True.
gramática
DriveObject.IsReady
Ejemplos
<%
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!
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!
Referencia completa de la unidad de objetos