ASP proprietà IsReady
Proprietà IsReady restituisce l'unità specificata è pronta. Pronto è vero, non è pronto a false.
Nota: per le unità rimovibili multimediali e unità CD-ROM, solo quando si inserisce il corrispondente accesso dei media e disposti ad accettare, quando, IsReady restituisce True.
grammatica
DriveObject.IsReady
Esempi
<%
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!
Completa unità oggetto di riferimento