ASP IsReadyPropiedad
Manual de referencia completo del objeto Drive
La propiedad IsReady devuelve si la unidad especificada está lista. Lista es true, no lista es false.
Nota:Para unidades de medios extraíbles y unidades de CD-ROM, IsReady devuelve True solo cuando el medio correspondiente está insertado y listo para aceptar acceso.
Sintaxis
DriveObject.IsReady
Ejemplo
<%
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
%>
Salida:
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
%>
Salida:
The A drive is not ready!
Manual de referencia completo del objeto Drive Otras extensiones